简体   繁体   English

iOS:仅限应用程序限制为64位设备

[英]iOS: limit app to 64-bit devices only

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位设备上安装app的方法。

I searched in XCode for this option but could not find anything. 我在XCode中搜索了这个选项但找不到任何东西。 Is this already possible and if yes, how can i enable it? 这是否已经可行,如果是,我该如何启用它?

In Xcode, set the following values: 在Xcode中,设置以下值:

Build settings > Architectures 构建设置>体系结构

  • Set to arm64 only. 仅设为arm64 (click Other -> + and than enter arm64 ) (单击其他 - > +,然后输入arm64

Build settings > Valid architectures 构建设置>有效的体系结构

  • Set to arm64 only. 仅设为arm64

Info.plist 的Info.plist

  • Set UIRequiredDeviceCapabilities to arm64 only. 仅将UIRequiredDeviceCapabilities设置为arm64

The app will then not be able to run on a device that does not support 64-bit code. 然后,该应用程序将无法在不支持64位代码的设备上运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM