2013-05-21 61 views
0

我嘗試編譯的Xcode項目,並得到這個錯誤:編譯架構錯誤

CreateUniversalBinary /Users/yosifz8gmailcom/Library/Developer/Xcode/DerivedData/birthday-exrjvwtlolewnqautwqzjjlvkpit/Build/Products/Debug-iphoneos/birthday.app/birthday normal "armv7 armv7" 
cd /Users/yosifz8gmailcom/Desktop/birthday 
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/yosifz8gmailcom/Library/Developer/Xcode/DerivedData/birthday-exrjvwtlolewnqautwqzjjlvkpit/Build/Intermediates/birthday.build/Debug-iphoneos/birthday.build/Objects-normal/armv7/birthday /Users/yosifz8gmailcom/Library/Developer/Xcode/DerivedData/birthday-exrjvwtlolewnqautwqzjjlvkpit/Build/Intermediates/birthday.build/Debug-iphoneos/birthday.build/Objects-normal/armv7/birthday -output /Users/yosifz8gmailcom/Library/Developer/Xcode/DerivedData/birthday-exrjvwtlolewnqautwqzjjlvkpit/Build/Products/Debug-iphoneos/birthday.app/birthday 

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo: /Users/yosifz8gmailcom/Library/Developer/Xcode/DerivedData/birthday-exrjvwtlolewnqautwqzjjlvkpit/Build/Intermediates/birthday.build/Debug-iphoneos/birthday.build/Objects-normal/armv7/birthday and /Users/yosifz8gmailcom/Library/Developer/Xcode/DerivedData/birthday-exrjvwtlolewnqautwqzjjlvkpit/Build/Intermediates/birthday.build/Debug-iphoneos/birthday.build/Objects-normal/armv7/birthday have the same architectures (armv7) and can't be in the same fat output fileCommand /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo failed with exit code 1 

任何想法,爲什麼它給我這個錯誤?

回答

0

嘗試改變有效的建築在項目中找到的值>從默認armv6 armv7構建設置>架構armv7。希望這會有所幫助。

+0

已經完成 – MTA

+0

嘗試將'armv6 armv7'設置爲'armv6' – Venkat

+0

我已經看到損壞的project.pbxproj。因此,如果您無法從Xcode更改Arch,請使用TextEdit(或其他編輯器)打開您的project.pbxproj,然後手動檢查它。搜索'ARCHS'鍵,看看這裏有什麼問題。默認行應該是:ARCHS =「$(ARCHS_STANDARD_32_BIT)」; – Emmanuel