ARKit将WorldTrackingConfiguration设置为gravityAndHeading会产生错误 [英] ARKit setting WorldTrackingConfiguration to gravityAndHeading produces error

查看:288
本文介绍了ARKit将WorldTrackingConfiguration设置为gravityAndHeading会产生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的ARWorldTrackingConfiguration.worldAlignment配置上使用.gravityAndHeading.但是,我不断收到此错误:

I am trying to use the .gravityAndHeading on my ARWorldTrackingConfiguration.worldAlignment configuration. However, I keep getting this error:

设备方向错误:Error Domain = CMErrorDomain Code = 102(null)" 2018-03-01 20:08:25.218445 + 0000 App [759:84092] [Session]会话(0x10ba12ce0):失败并出现错误:Error Domain = com.apple.arkit.error代码= 102必需的传感器失败." UserInfo = {NSLocalizedFailureReason =传感器无法传递所需的输入.,NSUnderlyingError = 0x1c0850740 {Error Domain = CMErrorDomain Code = 102(null)"},NSLocalizedRecoverySuggestion =请确保该应用程序具有必需的隐私设置.,NSLocalizedDescription = Required传感器发生故障.} 会话失败.更改worldAlignment属性.

Device orientation error: Error Domain=CMErrorDomain Code=102 "(null)" 2018-03-01 20:08:25.218445+0000 App[759:84092] [Session] Session (0x10ba12ce0): did fail with error: Error Domain=com.apple.arkit.error Code=102 "Required sensor failed." UserInfo={NSLocalizedFailureReason=A sensor failed to deliver the required input., NSUnderlyingError=0x1c0850740 {Error Domain=CMErrorDomain Code=102 "(null)"}, NSLocalizedRecoverySuggestion=Make sure that the application has the required privacy settings., NSLocalizedDescription=Required sensor failed.} Session failed. Changing worldAlignment property.

文档说要确保Info.plist包含相关的隐私要求-我添加了摄像头,位置,动作等,但无济于事.

The docs said to ensure that Info.plist contains the relevant privacy requirements - I've added camera, location, motion etc. but to no avail.

任何人都经历过相同的事情/想出了解决办法吗?

Anyone experienced the same/worked out a solution?

我使用此特定设置是因为我需要将节点映射到物理世界,而不仅是用户的相对位置.

I am using this specific setting because I need to map nodes to the physical world, not just to the relative position of the user.

推荐答案

您是否已将这些密钥添加到info.plist中?

Have you added these keys to your info.plist?

基于其他研究,例如错误代码102是什么意思,似乎以下内容可能适用根据您的情况:

Based on other resesarch e.g. What Does Error Code 102 Mean it seems that the following may be applicable to your situation:

CMErrorTrueNorthNotAvailable

在上面的帖子中,一名StackOverFlow用户似乎通过更改其设备上的以下设置解决了该问题:

From the post above one StackOverFlow user seems to have solved the issue by changing the following settings on their device:

设置>隐私>定位服务>系统服务>指南针校准:

Settings > Privacy > Location Services > System Services > Compass Calibration:

这篇关于ARKit将WorldTrackingConfiguration设置为gravityAndHeading会产生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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