如何在 Xcode 中将兼容设备设置为仅兼容 ARKit 的设备? [英] How do I set compatible devices to only ARKit compatible devices in Xcode?

查看:23
本文介绍了如何在 Xcode 中将兼容设备设置为仅兼容 ARKit 的设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何确保我在 iOS AppStore 上的应用仅显示对支持 ARKit 的设备的兼容性?

How can I make sure my app on iOS AppStore only show compatibility for ARKit enabled devices only?

推荐答案

关键是 arkit 用于您的 info.plist 文件在必需的设备功能下.

The key is arkit for your info.plist file under Required device capabilities.

关于 plist 键的 Apple 文档 (UIRequiredDeviceCapabilities).

Apple documentation on plist keys (UIRequiredDeviceCapabilities).

钥匙:arkit

说明:如果您的应用需要支持 ARKit,请包含此密钥在设备上(即具有 A9 或更高版本处理器的 iOS 设备).

Description: Include this key if your app requires support for ARKit on the device (that is, an iOS device with an A9 or later processor).

最低版本:iOS 11.0

对现有应用程序的一个重要警告是,一旦应用程序发布,Apple 就不允许您为该应用程序限制设备.

One important caveat for existing apps is that Apple does not allow you to restrict devices for an app once it has been released.

重要提示:所有设备要求更改必须在您提交时进行对您的二进制文件的更新.您只能扩展您的设备要求.提交对您的二进制文件的更新以限制您的设备要求是不允许的.你无法限制设备要求,因为此操作将保留拥有之前通过运行新更新下载了您的应用.

Important: All device requirement changes must be made when you submit an update to your binary. You are permitted only to expand your device requirements. Submitting an update to your binary to restrict your device requirements is not permitted. You are unable to restrict device requirements because this action will keep customers who have previously downloaded your app from running new updates.

如果您要向现有应用程序添加 AR 功能,您可以使用 <ARKit 的 code>isSupported 属性,以确定您是否应该公开它功能.

If you are adding AR functionality to an existing application, you can use the isSupported property of ARKit to determine if you should expose this functionality.

这篇关于如何在 Xcode 中将兼容设备设置为仅兼容 ARKit 的设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆