xcode iOS:将应用程序限制为仅限 64 位设备
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33646553/
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
iOS: limit app to 64-bit devices only
提问by Erik Sapir
According to the latest Apple WWDC, starting from ios 9 there should be a way to limit installing app only on 64 bit devices.
根据最新的 Apple WWDC,从 ios 9 开始,应该有一种方法可以限制仅在 64 位设备上安装应用程序。
I searched in XCode for this option but could not find anything. Is this already possible and if yes, how can i enable it?
我在 XCode 中搜索了此选项,但找不到任何内容。这是否已经可能,如果是,我该如何启用它?
回答by Daniel Zhang
In Xcode, set the following values:
在 Xcode 中,设置以下值:
Build settings > Architectures
构建设置 > 架构
- Set to arm64only. (click Other -> + and than enter arm64)
- 仅设置为arm64。(单击其他 -> + 然后输入arm64)
Build settings > Valid architectures
构建设置 > 有效架构
- Set to arm64only.
- 仅设置为arm64。
Info.plist
信息表
- Set UIRequiredDeviceCapabilities to arm64only.
- 仅将 UIRequiredDeviceCapabilities 设置为arm64。
The app will then not be able to run on a device that does not support 64-bit code.
该应用程序将无法在不支持 64 位代码的设备上运行。