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-最小=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
ld 中的 objc-class-ref:未找到体系结构 i386 的符号
clang:错误:链接器命令退出代码 1 失败(使用 -v 查看调用)

我从谷歌找到了很多答案,比如“找到 .m 文件在你的项目中”或“添加所需的框架”。我都试过了,但仍然无法解决这个问题。你们中的任何人都可以给我一些建议或以前见过这个问题吗?

4

1 回答 1

0

您需要将带有 i386 目标文件的胖二进制文件链接到您的目标中。

于 2013-07-23T13:00:49.363 回答