2011-11-26 94 views
0

我想在设备上运行我的项目......它的工作正常..但是当我尝试在模拟器上运行它时,它给了我一个链接器错误..我知道这一点被怪异..下面是错误i386硬件架构目标在iOS模拟器上运行Flickr链接器错误

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 

未定义符号: “_objc_assign_ivar”,从引用: - 在libObjectiveFlickr.a(LFHTTPRequest.o) [LFHTTPRequest(PrivateMethods)清理] - [ LFHTTPRequest(PrivateMethods)dealloc] in libObjectiveFlickr.a(LFHTTPRequest.o) - [LFHTTPRequest(PrivateMethods)readStreamHasBytesAvailable] in libObjectiveFlickr.a (LFHTTPRequest.o) - [LFHTTPRequest(PrivateMethods)readStreamEndEncountered]在libObjectiveFlickr.a(LFHTTPRequest.o) - [LFHTTPRequest INIT]在libObjectiveFlickr.a(LFHTTPRequest.o) - [LFHTTPRequest _performMethod:onURL:withData:orWithInputStream: knownContentSize:]在libObjectiveFlickr.a(LFHTTPRequest.o) - [LFHTTPRequest getReceivedDataAndDetachFromRequest]在libObjectiveFlickr.a(LFHTTPRequest.o) ... LD:符号(多个)未找到i386硬件架构 铛:错误:连接器命令退出代码1失败(使用-v查看调用)

请问有人请帮忙...非常感谢

+0

你链接到一个Objective-C运行时库吗? – 2011-11-26 09:53:31

回答

0

看来libObjectiveFlickr.a不支持i386架构。你可以用下面的命令来检查:

lipo -info <patth/to/libObjectiveFlickr.a> 

输出会告诉你,如果它是一个脂肪库和架构的库支持。

+0

输出说 输入文件libObjectiveFlickr.a不是胖文件 非胖文件libObjectiveFlickr.a是架构i3​​86 它支持体系结构...该应用程序不能在模拟器中运行...但工作正常在设备上 –