ios - ARSession 使用 Testflight 崩溃,而不是 Xcode
问题描述
我制作了一个使用后置摄像头跟踪 2D 身体运动数据的应用程序。我按照Apple 的示例从情节提要中创建了一个 ARView,并在我的 viewDidAppear 中添加了以下代码:
arView.session.delegate = self
// If the iOS device doesn't support body tracking, raise a developer error for
// this unhandled case.
guard ARBodyTrackingConfiguration.isSupported else {
fatalError("This feature is only supported on devices with an A12 chip")
}
// Run a body tracking configration.
let configuration = ARBodyTrackingConfiguration()
arView.session.run(configuration)
当我打开应用程序时,从 Xcode 安装时一切正常,但从 TestFligth 安装时应用程序崩溃。崩溃日志向我显示了最后一个回溯日志arView.session.delegate = self
解决方案
我找到了一种解决方法,以防有人遇到同样的问题。根据Apple的说法,这是 XCode 11 中的一个已知问题。要解决它,您需要手动将 RealityKit 添加到目标的 Link Binary with Libraries 构建阶段。希望这可以帮助
推荐阅读
- javascript - 如何将 Vimeo 视频响应式嵌入到 Slick Slider 中?
- android - @Qualifier 原因:字段注入时 [Dagger/MissingBinding]
- php - 如何检查当前日期是否在指定日期前一个月内
- android - 如何修复 PhoneGap Build 应用程序的“未安装应用程序”错误?
- java - 从数据库中正确检索多个值,java手机应用程序---php本地服务器
- d3.js - 新手 d3.SelectAll("g") - 有效,但没有“g”元素
- javascript - 我在过滤搜索时做错了什么
- acid - 使用 delta Lake 表作为对另一个变化的 delta 表的查找
- python - 使用 Python 脚本在 Power BI 中创建新列
- java - 我的 Eclipse 项目中是否需要 iml、iws ipr 文件?