xcode 部署目标低于 4.3 的 iPhone 应用程序应包含 armv6 架构

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6810205/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 21:33:29  来源:igfitidea点击:

iPhone apps with a deployment target lower than 4.3 should include an armv6 architecture

xcodexcode4warningsbuild-settings

提问by Aluminum

I have a problem :-( When I build my application for release XCode shows a warning saying:

我有一个问题:-( 当我构建我的应用程序发布 XCode 显示警告说:

iPhone apps with a deployment target lower than 4.3 should include an armv6 architecture (current IPHONEOS_DEPLOYMENT_TARGET = "3.0", ARCHS = "armv7").

But how can I set armv6in my build settings? I'm using XCode 4.2and here's my build settings:

但是如何armv6在我的构建设置中进行设置?我正在使用XCode 4.2,这是我的构建设置:

enter image description here

在此处输入图片说明

Thanks!

谢谢!

回答by Sum

I haven't used the version, but the current Xcode won't support signing for iOS 2.0 , so when iOS 5 comes out, 3.0 might have the same issue of not being supported

我没有用过这个版本,但是目前的Xcode不支持iOS 2.0的签名,所以当iOS 5出来的时候,3.0可能会有同样不支持的问题

This is from http://www.weston-fl.com/blog/?p=3050(This site has helped me resolve so many errors, so props to Mike D.)

这是来自http://www.weston-fl.com/blog/?p=3050(这个网站帮我解决了很多错误,所以对 Mike D 表示支持。)

  1. In Xcode navigate to Build Settings and find Architectures group (it's on the top, so hard to miss). Add armv6 to Architectures line. It should contain armv6, armv7 or Standard (armv6 armv7)
  2. Set Base SDK to Latest iOS (currently set to iOS …)
  3. Uncheck Build Active Architecture Only or set it to NO.
  4. Valid Architectures must show armv6 armv7 When your project uses your own dependent libraries, build them with the same (correct) configuration.
  1. 在 Xcode 中导航到 Build Settings 并找到 Architectures 组(它在顶部,很难错过)。将 armv6 添加到 Architectures 行。它应该包含 armv6、armv7 或 Standard (armv6 armv7)
  2. 将 Base SDK 设置为最新的 iOS(当前设置为 iOS ...)
  3. 取消选中仅构建活动架构或将其设置为否。
  4. 有效架构必须显示 armv6 armv7 当您的项目使用您自己的依赖库时,请使用相同(正确)的配置构建它们。