ARKit无法运行会话,此设备不支持配置

Svi*_*ana 12 ios ios11 arkit

在iPhone 6 plus上使用ARWorldTrackingSessionConfiguration获取和错误 Unable to run the session, configuration is not supported on this device

它能是什么?

Kru*_*nal 18

这是Apple关于ARKit和设备支持的文档

ARKit需要具有A9或更高版本处理器的iOS设备.要使您的应用仅在支持ARKit的设备上可用,请使用应用的Info.plist的UIRequiredDeviceCapabilities部分中的arkit密钥.如果增强现实是应用程序的辅助功能,请使用isSupported属性确定当前设备是否支持您要使用的会话配置.

您可以使用ARConfiguration的'isSupported`属性在运行时以编程方式检查ARKit支持.

ARConfiguration.isSupported

if (ARConfiguration.isSupported) {
    // ARKit is supported. You can work with ARKit
} else {
    // ARKit is not supported. You cannot work with ARKit
}
Run Code Online (Sandbox Code Playgroud)

iOS设备(安装了iOS 11)支持ARKit:

  • iPhone X.
  • iPhone 8和8 Plus
  • iPhone 6S和6S Plus
  • iPhone 7和7 Plus
  • iPhone SE
  • iPad Pro(9.7,10.5或12.9)
  • iPad(2017年,2018年)

以下是与ARKit支持和iOS设备配置相关的一些参考链接:

ARKit运行在Apple A9和A10&A11 Bionic芯片处理器上.
iPhone型号 - (芯片)
iPad型号 - (芯片)