警告:iPhone应用程序应包含armv6架构(当前ARCHS =“armv7”)(warning: iPhone apps should include an armv6 architecture

编程入门 行业动态 更新时间:2024-10-28 05:25:27
警告:iPhone应用程序应包含armv6架构(当前ARCHS =“armv7”)(warning: iPhone apps should include an armv6 architecture (current ARCHS = “armv7”))

我想将我的通用构建应用程序限制为iPhone4 / iPad,并且我已将UIRequiredDeviceCapabilities设置为包含“armv7”。 在我设置的构建设置中:

"Architectures" = "Optimized (armv7)" "Valid Architectures" = "armv7"

但我的通用应用程序的发布和发布版本正在生成此警告:

warning: iPhone apps should include an armv6 architecture (current ARCHS = "armv7")

这甚至是一个真正的问题吗? 我可以安全地忽略警告吗? 为什么我的调试版本没有显示相同的警告 - 构建配置具有相同的设置?

我正在使用XCode 3.2.5,4.2 SDK构建。

与此问题类似,但并不完全如此:

“警告:iPhone应用程序应该包含armv6架构”,即使使用构建配置集也是如此

I want to limit my universal-build app to iPhone4 / iPad, and I've set UIRequiredDeviceCapabilities to include "armv7", accordingly. In the build settings I've set:

"Architectures" = "Optimized (armv7)" "Valid Architectures" = "armv7"

But the Release and Distribution builds of my universal app are generating this warning:

warning: iPhone apps should include an armv6 architecture (current ARCHS = "armv7")

Is this even a real problem? Can I safely ignore the warning? Why doesn't my debug build exhibit the same warning - the build config has the same settings?

I'm building with XCode 3.2.5, 4.2 SDK.

Similar to this question, but not quite:

"Warning: iPhone apps should include an armv6 architecture" even with build config set

最满意答案

你可以只在你想要的时候使用arm7,但如果你想限制在iPhone 4 / iPad上,那是因为你有充分的理由吗? 要限制设备,您需要在Info.plist中使用UIRequiredDeviceCapabilities ,否则以前iPhone的用户将找到您的应用程序,它将无法正常工作。

PS:要为iPad和iPhone找到设备功能并不容易,例如你可以说你想要带有前置摄像头的设备但是这将限制在iPhone 4和iPad 2(而不是iPad 1)

You can stay with arm7 only if you want, but if you want to limit to iPhone 4 / iPad it's because you have a good reason ? To limit to devices you need to use UIRequiredDeviceCapabilities in your Info.plist, otherwise people with previous iPhone will find your app and it will not work.

PS: It's not easy to find a device capability for both iPad and iPhone, you can for example said that you want devices with a front facing camera but this will limit to iPhone 4 and iPad 2 (and not iPad 1)

更多推荐

本文发布于:2023-07-26 03:57:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1270759.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   架构   ARCHS   iPhone   architecture

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!