iOS:仅限应用程序限制为64位设备 [英] iOS: limit app to 64-bit devices only
本文介绍了iOS:仅限应用程序限制为64位设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
根据最新的Apple WWDC,从ios 9开始,应该有一种限制只在64位设备上安装应用程序的方法。
According to the latest Apple WWDC, starting from ios 9 there should be a way to limit installing app only on 64 bit devices.
我在XCode中搜索了这个选项但找不到任何东西。这是否已经可行,如果是,我该如何启用呢?
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中,设置以下值:
In Xcode, set the following values:
构建设置>体系结构
- 仅设置为 arm64 。 (单击其他 - > +然后输入 arm64 )
- Set to arm64 only. (click Other -> + and than enter arm64)
构建设置>有效体系结构
Build settings > Valid architectures
- 仅设为 arm64 。
- Set to arm64 only.
Info.plist
Info.plist
- 仅将UIRequiredDeviceCapabilities设置为 arm64 。
- Set UIRequiredDeviceCapabilities to arm64 only.
该应用程序将无法在不支持64位代码的设备上运行。
The app will then not be able to run on a device that does not support 64-bit code.
这篇关于iOS:仅限应用程序限制为64位设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文