我想将我的通用构建应用程序限制为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)
更多推荐
发布评论