1

我是新手,如果我包含太多(或太少)信息,请原谅我。我尝试删除派生数据并重新启动 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

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

4

1 回答 1

6

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

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

为此,请单击项目文件,选择您的目标,然后从有效架构行中删除 armv7s 行。

这对我有用。

于 2012-09-24T07:40:15.530 回答