2012-09-24 65 views
1

我是新手,如果我包含太多(或太少)信息,請原諒我。我嘗試刪除派生數據並重新啓動XCode,這是我在類似於這個問題的另一個問題上看到的一個建議,但我仍然得到相同的三條錯誤消息:從XCode 4.5 DP4更新到XCode 4.5後,應用程序在模擬器上運行,但不在設備上運行

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 

有關我如何解決這個問題的任何想法?

回答

6

我在其中一個應用程序中發現了類似的問題。

你正在鏈接一個尚未編譯爲armv7s的外部庫嗎?如果是這樣,你會得到這個錯誤。要解決這個問題,你需要找到庫並用armv7s支持編譯它,或者你可以從有效的體系結構中移除armv7s。

通過單擊項目文件,選擇您的目標並從有效體系結構行中刪除armv7s行來完成此操作。

這對我有效。

+0

你是男性中的王子(或女性中的公主)!但現在我的問題是 - 在有效的體系結構中似乎沒有一條線是唯一的armv7s。我會在另一個答案中發佈照片。 –

+0

沒關係 - 我下載了最新版本的外部庫,並修復了它!謝謝你,謝謝你,謝謝你! –

相關問題