从XCode 4.5 DP4更新到XCode 4.5后,应用程序在模拟器上运行,但在设备上运行

时间:2012-09-24 00:17:15

标签: ios6 xcode4.5

我是新手,如果我收集了太多(或太少)信息,请原谅我。我尝试删除派生数据并重新启动XCode,这是我在另一个与此类似的问题上看到的建议,但我仍然得到相同的三条错误消息:

Apple Mach-O链接器错误:链接器命令失败,退出代码为1

Ld /Users/joel/Library/Developer/Xcode/DerivedData/GayHaiku-crhnnbsqptnxaogjezyomdzplbag/Build/Intermediates/GayHaiku.build/Debug-iphoneos/GayHaiku.build/Objects-normal/armv7s/GayHaiku normal armv7s
cd /Users/joel/Desktop/GayHaiku
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -L/Users/joel/Library/Developer/Xcode/DerivedData/GayHaiku-crhnnbsqptnxaogjezyomdzplbag/Build/Products/Debug-iphoneos -L/Users/joel/Desktop/GayHaiku/facebook-ios-sdk/build/facebook-ios-sdk.build/Release-iphoneos/facebook-ios-sdk.build/Objects-normal/armv6 -L/Users/joel/Desktop/GayHaiku/facebook-ios-sdk/build/facebook-ios-sdk.build/Release-iphoneos/facebook-ios-sdk.build/Objects-normal/armv7 -L/Users/joel/Desktop/GayHaiku/facebook-ios-sdk/build/Release-iphoneos -L/Users/joel/Desktop/GayHaiku/facebook-ios-sdk/build/Release-iphonesimulator -L/Users/joel/Desktop/GayHaiku/facebook-ios-sdk/lib/facebook-ios-sdk -F/Users/joel/Library/Developer/Xcode/DerivedData/GayHaiku-crhnnbsqptnxaogjezyomdzplbag/Build/Products/Debug-iphoneos -F/Users/joel/Desktop/GayHaiku -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -filelist /Users/joel/Library/Developer/Xcode/DerivedData/GayHaiku-crhnnbsqptnxaogjezyomdzplbag/Build/Intermediates/GayHaiku.build/Debug-iphoneos/GayHaiku.build/Objects-normal/armv7s/GayHaiku.LinkFileList -dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.0 -framework Accounts -framework Social -framework CFNetwork -lsqlite3 -lz.1.1.3 -framework MobileCoreServices -framework Security -framework StoreKit -framework SystemConfiguration -framework AudioToolbox -framework Twitter -framework QuartzCore -framework MessageUI -framework UIKit -framework Foundation -framework CoreGraphics -framework Parse -o /Users/joel/Library/Developer/Xcode/DerivedData/GayHaiku-crhnnbsqptnxaogjezyomdzplbag/Build/Intermediates/GayHaiku.build/Debug-iphoneos/GayHaiku.build/Objects-normal/armv7s/GayHaiku

ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/joel/Desktop/GayHaiku/Parse.framework/Parse for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)

未分类:命令失败,退出代码为1

CreateUniversalBinary /Users/joel/Library/Developer/Xcode/DerivedData/GayHaiku-crhnnbsqptnxaogjezyomdzplbag/Build/Products/Debug-iphoneos/GayHaiku.app/GayHaiku normal "armv7 armv7s"
cd /Users/joel/Desktop/GayHaiku
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
lipo -create /Users/joel/Library/Developer/Xcode/DerivedData/GayHaiku-crhnnbsqptnxaogjezyomdzplbag/Build/Intermediates/GayHaiku.build/Debug-iphoneos/GayHaiku.build/Objects-normal/armv7/GayHaiku /Users/joel/Library/Developer/Xcode/DerivedData/GayHaiku-crhnnbsqptnxaogjezyomdzplbag/Build/Intermediates/GayHaiku.build/Debug-iphoneos/GayHaiku.build/Objects-normal/armv7s/GayHaiku -output /Users/joel/Library/Developer/Xcode/DerivedData/GayHaiku-crhnnbsqptnxaogjezyomdzplbag/Build/Products/Debug-iphoneos/GayHaiku.app/GayHaiku

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo: can't open input file: /Users/joel/Library/Developer/Xcode/DerivedData/GayHaiku-crhnnbsqptnxaogjezyomdzplbag/Build/Intermediates/GayHaiku.build/Debug-iphoneos/GayHaiku.build/Objects-normal/armv7s/GayHaiku (No such file or directory)
Command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo failed with exit code 1

Dysmutil错误:无法打开可执行文件

GenerateDSYMFile /Users/joel/Library/Developer/Xcode/DerivedData/GayHaiku-crhnnbsqptnxaogjezyomdzplbag/Build/Products/Debug-iphoneos/GayHaiku.app.dSYM /Users/joel/Library/Developer/Xcode/DerivedData/GayHaiku-crhnnbsqptnxaogjezyomdzplbag/Build/Products/Debug-iphoneos/GayHaiku.app/GayHaiku
cd /Users/joel/Desktop/GayHaiku
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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/dsymutil /Users/joel/Library/Developer/Xcode/DerivedData/GayHaiku-crhnnbsqptnxaogjezyomdzplbag/Build/Products/Debug-iphoneos/GayHaiku.app/GayHaiku -o /Users/joel/Library/Developer/Xcode/DerivedData/GayHaiku-crhnnbsqptnxaogjezyomdzplbag/Build/Products/Debug-iphoneos/GayHaiku.app.dSYM

关于我如何解决这个问题的任何想法?

1 个答案:

答案 0 :(得分:6)

我在其中一个应用中发现了类似的问题。

您是否链接到尚未为armv7编译的外部库?如果是这样,您将收到此错误。要解决此问题,您需要找到库并使用armv7s支持进行编译,或者您可以从有效的体系结构中删除armv7。

通过单击项目文件,选择目标并从有效体系结构行中删除armv7s行来执行此操作。

这对我有用。