【发布时间】:2019-02-11 16:02:33
【问题描述】:
我按照本教程:https://www.raywenderlich.com/378-augmented-reality-and-arkit-tutorial 了解增强现实。
当我运行项目时出现错误:
Session did fail with error: Error Domain=com.apple.arkit.error Code=100 "Unsupported configuration." UserInfo={NSLocalizedDescription=Unsupported configuration., NSLocalizedFailureReason=The provided configuration is not supported on this device.} Session Failed - probably due to lack of camera access.
即使我使用以下代码进行测试以验证模拟器是否支持 ARKit,我也没有找到此错误的原因:
if (ARConfiguration.isSupported) {
print("ARKit is supported. You can work with ARKit")
} else {
print("ARKit is not supported. You cannot work with ARKit")
}
可能是什么问题?
【问题讨论】:
-
可能是因为您在模拟器上运行您的应用程序
-
不能在模拟器上运行带有增强现实的应用程序吗?
-
哦,你实际上可以在模拟器上运行你的应用程序,但它不会像你期望的那样工作。 ;)