2011-10-13 61 views
2

我想添加一個靜態庫到我創建的鈦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 

我絕望了,誰能幫助?

謝謝!

回答

0

本節這一行添加到module.xcconfig

OTHER_LDFLAGS=$(inherited) -framework GameKit 

其中的GameKit是你是在你的庫中使用缺少的框架。