我正在尝试在设备上运行我的项目...它的工作正常..但是当我尝试在模拟器上运行它时给我一个链接器错误..我知道这很奇怪..以下是错误< / p>
Ld /Users/Shwet/Library/Developer/Xcode/DerivedData/App-eriptsksdksmljhiivlfsmjhgrfg/Build/Products/Debug-iphonesimulator/App.app/App normal i386
cd /Users/Shwet/Shwet/git/App-iPhone/App
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/Shwet/Library/Developer/Xcode/DerivedData/App-eriptsksdksmljhiivlfsmjhgrfg/Build/Products/Debug-iphonesimulator -F/Users/Shwet/Library/Developer/Xcode/DerivedData/App-eriptsksdksmljhiivlfsmjhgrfg/Build/Products/Debug-iphonesimulator -filelist /Users/Shwet/Library/Developer/Xcode/DerivedData/App-eriptsksdksmljhiivlfsmjhgrfg/Build/Intermediates/App.build/Debug-iphonesimulator/App.build/Objects-normal/i386/App.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -all_load -lxml2 -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=40100 -lz /Users/Shwet/Library/Developer/Xcode/DerivedData/App-eriptsksdksmljhiivlfsmjhgrfg/Build/Products/Debug-iphonesimulator/libObjectiveFlickr.a -framework Foundation -framework UIKit -framework CoreGraphics -lxml2 -framework QuartzCore -framework AssetsLibrary -framework CFNetwork -framework AddressBook -framework AddressBookUI /Users/Shwet/Library/Developer/Xcode/DerivedData/App-eriptsksdksmljhiivlfsmjhgrfg/Build/Products/Debug-iphonesimulator/libTapkuLibrary.a -framework MapKit -framework SystemConfiguration -framework MobileCoreServices /Users/Shwet/Library/Developer/Xcode/DerivedData/App-eriptsksdksmljhiivlfsmjhgrfg/Build/Products/Debug-iphonesimulator/libThree20.a -o /Users/Shwet/Library/Developer/Xcode/DerivedData/App-eriptsksdksmljhiivlfsmjhgrfg/Build/Products/Debug-iphonesimulator/App.app/App
架构i386的未定义符号: “_objc_assign_ivar”,引自: - libObjectiveFlickr.a中的[LFHTTPRequest(PrivateMethods)cleanUp](LFHTTPRequest.o) - libObjectiveFlickr.a中的[LFHTTPRequest(PrivateMethods)dealloc](LFHTTPRequest.o) - libObjectiveFlickr.a中的[LFHTTPRequest(PrivateMethods)readStreamHasBytesAvailable](LFHTTPRequest.o) - libObjectiveFlickr.a中的[LFHTTPRequest(PrivateMethods)readStreamEndEncountered](LFHTTPRequest.o) - libObjectiveFlickr.a中的[LFHTTPRequest init](LFHTTPRequest.o) - libObjectiveFlickr.a中的[LFHTTPRequest _performMethod:onURL:withData:orWithInputStream:knownContentSize:](LFHTTPRequest.o) - libObjectiveFlickr.a中的[LFHTTPRequest getReceivedDataAndDetachFromRequest](LFHTTPRequest.o) ... ld:找不到架构i386的符号 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
请有人帮助......非常感谢
答案 0 :(得分:0)
似乎libObjectiveFlickr.a
不支持i386架构。您可以使用以下命令进行检查:
lipo -info <patth/to/libObjectiveFlickr.a>
输出将告诉您它是否是 fat </ em>库以及库支持的架构。