2013-07-23 34 views
0

嗨大家好。我在構建一個包含BSYahooFinance類的xcode項目時遇到了問題。 這個問題的細節:


Ld /Users/yxu/Library/Developer/Xcode/DerivedData/exchange-avxwiknpprmcnlhgjynxlmbwglpm/Build/Products/Debug-iphonesimulator/exchange.app/exchange normal i386
cd /Users/yxu/Documents/project/exchange
setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
setenv PATH
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/yxu/Library/Developer/Xcode/DerivedData/exchange-avxwiknpprmcnlhgjynxlmbwglpm/Build/Products/Debug-iphonesimulator -F/Users/yxu/Library/Developer/Xcode/DerivedData/exchange-avxwiknpprmcnlhgjynxlmbwglpm/Build/Products/Debug-iphonesimulator -filelist /Users/yxu/Library/Developer/Xcode/DerivedData/exchange-avxwiknpprmcnlhgjynxlmbwglpm/Build/Intermediates/exchange.build/Debug-iphonesimulator/exchange.build/Objects-normal/i386/exchange.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework CoreData -framework CoreFoundation -lxml2 -lz -framework MobileCoreServices -framework SystemConfiguration -framework CFNetwork -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/yxu/Library/Developer/Xcode/DerivedData/exchange-avxwiknpprmcnlhgjynxlmbwglpm/Build/Products/Debug-iphonesimulator/exchange.app/exchange


Undefined symbols for architecture i386:

"_OBJC_CLASS_$_SBJsonParser", referenced from:
objc-class-ref in YFStockSymbolSearch.o
objc-class-ref in YFStockDetailsLoader.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我發現有很多的答案,如「尋找.m文件是在您的項目」或「添加所需的framworks」從google.I嘗試所有這些,但仍無法解決這個問題。你有什麼人可以給我一些建議或看到這個問題嗎?

回答

0

您需要鏈接一個胖二進制文件和SBJsonParser的i386目標文件到目標文件中。

+0

太棒了!如果一個答案解決了這個問題,你應該在Stack Overflow上接受它。 –

相關問題