当我去验证我的应用程序时,出现错误executable is missing a required architecture. At least one of the following architectures must be present: armv6
我正在使用Xcode 4.2和iOS5 SDK并部署到3.2。在更新SDK之前,这从未发生过。
构建归档时,我还会收到一些警告:
Check dependencies
[WARN]Warning: Multiple build commands for output file/Users/chrismanahan/Library/Developer/Xcode/DerivedData/Math_Buddy-cywtminuxpdkhkanmtqkswygozhr/Build/Products/Distribution-iphoneos/Math Buddy.app/charset.alias
[WARN]Warning: Multiple build commands for output file /Users/chrismanahan/Library/Developer/Xcode/DerivedData/Math_Buddy-cywtminuxpdkhkanmtqkswygozhr/Build/Products/Distribution-iphoneos/Math Buddy.app/libcurl.la
[WARN]Warning: Multiple build commands for output file /Users/chrismanahan/Library/Developer/Xcode/DerivedData/Math_Buddy-cywtminuxpdkhkanmtqkswygozhr/Build/Products/Distribution-iphoneos/Math Buddy.app/libgcrypt.la
[WARN]Warning: Multiple build commands for output file /Users/chrismanahan/Library/Developer/Xcode/DerivedData/Math_Buddy-cywtminuxpdkhkanmtqkswygozhr/Build/Products/Distribution-iphoneos/Math Buddy.app/libgpg-error.la
[WARN]Warning: Multiple build commands for output file /Users/chrismanahan/Library/Developer/Xcode/DerivedData/Math_Buddy-cywtminuxpdkhkanmtqkswygozhr/Build/Products/Distribution-iphoneos/Math Buddy.app/libsasl2.la
[WARN]Warning: Multiple build commands for output file /Users/chrismanahan/Library/Developer/Xcode/DerivedData/Math_Buddy-cywtminuxpdkhkanmtqkswygozhr/Build/Products/Distribution-iphoneos/Math Buddy.app/libssh2.la
[WARN]Warning: Multiple build commands for output file /Users/chrismanahan/Library/Developer/Xcode/DerivedData/Math_Buddy-cywtminuxpdkhkanmtqkswygozhr/Build/Products/Distribution-iphoneos/Math Buddy.app/libcrypto.pc
[WARN]Warning: Multiple build commands for output file /Users/chrismanahan/Library/Developer/Xcode/DerivedData/Math_Buddy-cywtminuxpdkhkanmtqkswygozhr/Build/Products/Distribution-iphoneos/Math Buddy.app/libssh2.pc
[WARN]Warning: Multiple build commands for output file /Users/chrismanahan/Library/Developer/Xcode/DerivedData/Math_Buddy-cywtminuxpdkhkanmtqkswygozhr/Build/Products/Distribution-iphoneos/Math Buddy.app/libssl.pc
[WARN]Warning: Multiple build commands for output file /Users/chrismanahan/Library/Developer/Xcode/DerivedData/Math_Buddy-cywtminuxpdkhkanmtqkswygozhr/Build/Products/Distribution-iphoneos/Math Buddy.app/openssl.pc
[WARN]Warning: Multiple build commands for output file /Users/chrismanahan/Library/Developer/Xcode/DerivedData/Math_Buddy-cywtminuxpdkhkanmtqkswygozhr/Build/Products/Distribution-iphoneos/Math Buddy.app/zlib.pc
[BWARN]warning: iPhone apps with a deployment target lower than 4.3 should include an armv6 architecture (current IPHONEOS_DEPLOYMENT_TARGET = "3.2", ARCHS = "armv7").
Ld "/Users/chrismanahan/Library/Developer/Xcode/DerivedData/Math_Buddy-cywtminuxpdkhkanmtqkswygozhr/Build/Products/Distribution-iphoneos/Math Buddy.app/Math Buddy" normal armv7
cd "/Volumes/iOS Development/Apps/Math Buddy"
setenv IPHONEOS_DEPLOYMENT_TARGET 3.2
setenv PATH "/Developer-4.2/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer-4.2/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer-4.2/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -arch armv7 -isysroot /Developer-4.2/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -L/Users/chrismanahan/Library/Developer/Xcode/DerivedData/Math_Buddy-cywtminuxpdkhkanmtqkswygozhr/Build/Products/Distribution-iphoneos "-L[sdk=iphonesimulator3.2][arch=*]" -L= -L/Volumes/iOS -LDevelopment/Apps/Math -LBuddy/../iPhoneSimulator-3.2/lib "-L[sdk=iphoneos3.2][arch=*]" -L= -L/Volumes/iOS -LDevelopment/Apps/Math -LBuddy/../iPhoneOS-3.2/lib "-L/Volumes/iOS Development/Apps/Math Buddy/iPhoneOS-3.2/lib" "-L/Volumes/iOS Development/Apps/Math Buddy/iPhoneSimulator-3.2/lib" -F/Users/chrismanahan/Library/Developer/Xcode/DerivedData/Math_Buddy-cywtminuxpdkhkanmtqkswygozhr/Build/Products/Distribution-iphoneos -filelist "/Users/chrismanahan/Library/Developer/Xcode/DerivedData/Math_Buddy-cywtminuxpdkhkanmtqkswygozhr/Build/Intermediates/Math Buddy.build/Distribution-iphoneos/Math Buddy.build/Objects-normal/armv7/Math Buddy.LinkFileList" -dead_strip -miphoneos-version-min=3.2 -framework UIKit -framework Foundation -framework CoreGraphics -lcrypto -lcurl -letpan -lgcrypt -lgpg-error -lsasl2 -lssh2 -lssl -lz -lcrypto -lcurl -letpan -lgcrypt -lgpg-error -lsasl2 -lssh2 -lssl -lz -o "/Users/chrismanahan/Library/Developer/Xcode/DerivedData/Math_Buddy-cywtminuxpdkhkanmtqkswygozhr/Build/Products/Distribution-iphoneos/Math Buddy.app/Math Buddy"
最佳答案
我在另一个堆栈问题上找到了答案。我要做的就是为Required device capabilities
添加一个数组项
"Warning: iPhone apps should include an armv6 architecture" even with build config set
关于objective-c - objective-c :缺少架构,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7431047/