目标 C:缺失的架构

发布于 2024-12-04 21:05:26 字数 4551 浏览 1 评论 0原文

当我去验证我的应用程序时,出现错误 可执行文件缺少所需的体系结构。必须至少存在以下架构之一: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"

When I go to validate my app, I get the error
executable is missing a required architecture. At least one of the following architectures must be present: armv6

I'm using Xcode 4.2 and the iOS5 SDK and deploying to 3.2. This never happened before I updated the SDK.

I'm also getting several warnings coming up when I build for archiving:

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"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

猥︴琐丶欲为 2024-12-11 21:05:26

我在另一个堆栈问题上找到了答案。我所要做的就是为所需的设备功能添加一个数组条目
“警告:iPhone 应用程序应包含 armv6 架构”,即使具有构建配置集

I found the answer on another stack question. All I had to do was add an array entry for Required device capabilities
"Warning: iPhone apps should include an armv6 architecture" even with build config set

虚拟世界 2024-12-11 21:05:26

我刚刚尝试了相同的配置,在架构中显示:$(ARCHS_STANDARD_32_BIT)armv6。有了这个和目标 3.2,我没有收到任何警告。检查您的架构是否相同。所以看来armv6肯定是存在的。只需前往您的目标 ->构建设置 ->建筑学。双击->其他并添加armv6,这应该可以解决你的问题。

I just tried the same configuration and in Architectures is says: $(ARCHS_STANDARD_32_BIT) armv6. With this and target 3.2 I dont get any warning. Check your architectures is they are the same. So it seems that armv6 must be present. Just go to your Target -> Build Settings -> Architecture. Doublie-click -> others and add armv6, that should solve your problem.

转身泪倾城 2024-12-11 21:05:26

项目->编辑项目设置->在构建选项卡中搜索“active”,然后取消选择仅构建活动架构

如果取消选中“仅构建活动架构”,那么它将构建所有有效的架构。

最初取自此处.. .

project -> edit project settings -> in build tab search with "active" then unselect build active arch only

If you uncheck "Build Active Architecture Only", then it will build all the valid architectures.

originally taken from here...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文