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

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

它可能是什么?

这里是苹果的ARKit和设备支持文件

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

您可以使用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 } 

以下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)

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

ARKit在Apple A9和A10 & A11仿生芯片处理器上运行。
iPhone型号 – (芯片)
iPad型号 – (芯片)