大家好。我在构建包含BSYahooFinance类的xcode项目时遇到问题。 这个问题的细节:
Ld的 /Users/yxu/Library/Developer/Xcode/DerivedData/exchange-avxwiknpprmcnlhgjynxlmbwglpm/Build/Products/Debug-iphonesimulator/exchange.app/exchange 正常的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: /斌:/ 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 /用户/ YXU /库/开发商/ Xcode中/ DerivedData /交换avxwiknpprmcnlhgjynxlmbwglpm /编译/产品/调试,iphonesimulator -F /用户/ YXU /库/开发商/ Xcode中/ DerivedData /交换avxwiknpprmcnlhgjynxlmbwglpm /编译/产品/调试,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弧-fobjc链路的运行时-Xlinker -no_implicit_dylibs -mios模拟器版本分钟= 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
架构i386的未定义符号:
“_OBJC_CLASS _ $ _ SBJsonParser”,引自:
yFStockSymbolSearch.o中的objc-class-ref YFStockDetailsLoader.o中的objc-class-ref
ld:未找到架构i386的符号
铿锵:错误:链接器命令失败 退出代码1(使用-v查看调用)
我找到了许多答案,例如“在你的项目中查找.m文件”或“从谷歌添加所需的framworks”。我尝试了所有这些,但仍然无法解决这个问题。你有没有人可以给我一些建议或者之前看过这个问题?
答案 0 :(得分:0)
您需要将胖二进制文件与SBJsonParser的i386对象文件链接到目标中。