今天遇到一个error
[Sensor] Device orientation error: Error Domain=CMErrorDomain Code=102 "(null)"
[Session] Session (0x1060500a0): 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=0x1c42405a0 {Error Domain=CMErrorDomain Code=102 "(null)"}, NSLocalizedRecoverySuggestion=Make sure that the application has the required privacy settings., NSLocalizedDescription=Required sensor failed.}
在我的iphoneX运行遇不到这个错误,在ipad上运行会出现以上错误。
没有找到error出现的原因,但是以下方法可以避免这个error
关闭 .gravityAndHeading
//worldTrackingSessionConfiguration.worldAlignment = .gravityAndHeading