我一直在搜索SO和Google,但還沒有找到有用的東西。架構i386的未定義符號將項目升級到iOS 5
我們將更新現有的iOS項目,以建立針對iOS的5
我們的項目有兩個目標,第一個是我們的靜態庫,第二個是一個單元測試應用程序(GHUnit)。
在構建單元測試的目標是成功編譯靜態庫,但隨後沒有針對它與下面的輸出鏈接:
Ld /Users/XXXXXX/Library/Developer/Xcode/DerivedData/XXXXXXLibrary-egoqfplddstqvwaigwuiqfqplcax/Build/Products/Debug-iphonesimulator/UnitTests.app/UnitTests normal i386
cd /Users/XXXXXX/Documents/iOS/trunk
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/XXXXXX/Library/Developer/Xcode/DerivedData/XXXXXXLibrary-egoqfplddstqvwaigwuiqfqplcax/Build/Products/Debug-iphonesimulator -F/Users/XXXXXX/Library/Developer/Xcode/DerivedData/XXXXXXLibrary-egoqfplddstqvwaigwuiqfqplcax/Build/Products/Debug-iphonesimulator -F/Users/XXXXXX/Documents/iOS/trunk -F/Users/XXXXXX/Documents/iOS/trunk/UnitTests -filelist /Users/XXXXXX/Library/Developer/Xcode/DerivedData/XXXXXXLibrary-egoqfplddstqvwaigwuiqfqplcax/Build/Intermediates/XXXXXXLibrary.build/Debug-iphonesimulator/UnitTests.build/Objects-normal/i386/UnitTests.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -all_load -Wl -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework SystemConfiguration -framework CoreLocation -framework CoreData /Users/XXXXXX/Library/Developer/Xcode/DerivedData/XXXXXXLibrary-egoqfplddstqvwaigwuiqfqplcax/Build/Products/Debug-iphonesimulator/XXXXXX.a -framework GHUnitIOS -framework CoreGraphics -framework Foundation -framework UIKit -o /Users/XXXXXX/Library/Developer/Xcode/DerivedData/XXXXXXLibrary-egoqfplddstqvwaigwuiqfqplcax/Build/Products/Debug-iphonesimulator/UnitTests.app/UnitTests
Undefined symbols for architecture i386:
"_llvm_gcda_start_file", referenced from:
___llvm_gcov_writeout in XXXXXX.a(NSObject+SBJSON.o)
___llvm_gcov_writeout in XXXXXX.a(NSString+SBJSON.o)
___llvm_gcov_writeout in XXXXXX.a(SBJsonBase.o)
___llvm_gcov_writeout in XXXXXX.a(SBJsonParser.o)
___llvm_gcov_writeout in XXXXXX.a(SBJsonWriter.o)
___llvm_gcov_writeout in XXXXXX.a(XXXXXXReachability.o)
___llvm_gcov_writeout in XXXXXX.a(XXXXXX.o)
...
"_llvm_gcda_emit_function", referenced from:
___llvm_gcov_writeout in XXXXXX.a(NSObject+SBJSON.o)
___llvm_gcov_writeout in XXXXXX.a(NSString+SBJSON.o)
___llvm_gcov_writeout in XXXXXX.a(SBJsonBase.o)
___llvm_gcov_writeout in XXXXXX.a(SBJsonParser.o)
___llvm_gcov_writeout in XXXXXX.a(SBJsonWriter.o)
___llvm_gcov_writeout in XXXXXX.a(XXXXXXReachability.o)
___llvm_gcov_writeout in XXXXXX.a(XXXXXX.o)
...
"_llvm_gcda_emit_arcs", referenced from:
___llvm_gcov_writeout in XXXXXX.a(NSObject+SBJSON.o)
___llvm_gcov_writeout in XXXXXX.a(NSString+SBJSON.o)
___llvm_gcov_writeout in XXXXXX.a(SBJsonBase.o)
___llvm_gcov_writeout in XXXXXX.a(SBJsonParser.o)
___llvm_gcov_writeout in XXXXXX.a(SBJsonWriter.o)
___llvm_gcov_writeout in XXXXXX.a(XXXXXXReachability.o)
___llvm_gcov_writeout in XXXXXX.a(XXXXXX.o)
...
"_llvm_gcda_end_file", referenced from:
___llvm_gcov_writeout in XXXXXX.a(NSObject+SBJSON.o)
___llvm_gcov_writeout in XXXXXX.a(NSString+SBJSON.o)
___llvm_gcov_writeout in XXXXXX.a(SBJsonBase.o)
___llvm_gcov_writeout in XXXXXX.a(SBJsonParser.o)
___llvm_gcov_writeout in XXXXXX.a(SBJsonWriter.o)
___llvm_gcov_writeout in XXXXXX.a(XXXXXXReachability.o)
___llvm_gcov_writeout in XXXXXX.a(XXXXXX.o)
...
"_llvm_gcda_increment_indirect_counter", referenced from:
-[SBJsonParser scanValue:] in XXXXXX.a(SBJsonParser.o)
-[SBJsonParser scanRestOfString:] in XXXXXX.a(SBJsonParser.o)
-[SBJsonWriter appendString:into:] in XXXXXX.a(SBJsonWriter.o)
-[XXXXXX loginSuccessfulCallback:XXXXXXHttpResult:] in XXXXXX.a(XXXXXX.o)
+[XXXXXXDataTank sharedDataTankManager] in XXXXXX.a(XXXXXXDataTank.o)
-[XXXXXXDataTank processFiveHundredSeriesHttpResult:] in XXXXXX.a(XXXXXXDataTank.o)
-[XXXXXXDataTank networkActive] in XXXXXX.a(XXXXXXDataTank.o)
...
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我試圖尋找的unfound符號,但谷歌從字面上有0結果。
我假設靜態庫正在建立與單元測試目標不是,但我無法找到它的東西。
有沒有人有任何建議?
乾杯
此錯誤通常在框架不可用時出現。在這裏我不確定哪個框架丟失,但也許你可以嘗試找出丟失的框架。 – Sahil