我想添加一個靜態庫到我創建的鈦iphone模塊,並且似乎每當我將庫添加到「鏈接庫與二進制文件」,並使用titanium run
鈦返回以下錯誤:不能在鈦模塊中使用靜態庫
[ERROR] Error: Traceback (most recent call last):
[DEBUG] File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/iphone/builder.py", line 1148, in main
[DEBUG] execute_xcode("iphonesimulator%s" % link_version,["GCC_PREPROCESSOR_DEFINITIONS=__LOG__ID__=%s DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s %s" % (log_id,sdk_version,debugstr)],False)
[DEBUG] File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/iphone/builder.py", line 1066, in execute_xcode
[DEBUG] output = run.run(args,False,False,o)
[DEBUG] File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/iphone/run.py", line 39, in run
[DEBUG] sys.exit(rc)
[DEBUG] SystemExit: 65
[ERROR] Build Failed. See: /var/folders/ot/ot5FPlA3EZyk6n8ZnYeWxk+++TI/-Tmp-/m9mX89ati/test2/build/iphone/build/build.log
build.log顯示:
** BUILD FAILED **
The following build commands failed:
Ld build/Debug-iphonesimulator/test2.app/test2 normal i386
(1 failure)
EXIT CODE WAS: 65
Exception detected in script:
Traceback (most recent call last):
File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/iphone/builder.py", line 1148, in main
execute_xcode("iphonesimulator%s" % link_version,["GCC_PREPROCESSOR_DEFINITIONS=__LOG__ID__=%s DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s %s" % (log_id,sdk_version,debugstr)],False)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/iphone/builder.py", line 1066, in execute_xcode
output = run.run(args,False,False,o)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/iphone/run.py", line 39, in run
sys.exit(rc)
SystemExit: 65
我絕望了,誰能幫助?
謝謝!
感謝您的迴應,我在module.xcconfig文件中添加了這一行:'OTHER_LDFLAGS = $(inherited)-lib {library name}',並且它引發同樣的錯誤。應該是{庫名} .a還是隻有沒有擴展名的名稱?是否有可能鈦不支持這個庫? – shay