Xcode 9 Beta 5 中的“ARConfiguration() – init() 不可用”错误

Posted

技术标签:

【中文标题】Xcode 9 Beta 5 中的“ARConfiguration() – init() 不可用”错误【英文标题】:"ARConfiguration() – init() is unavailable" error in Xcode 9 Beta 5 【发布时间】:2017-08-17 09:40:53 【问题描述】:

在更新我现有的 AR 应用程序代码(使用 ARKit 和 SceneKit 编写)时,我在尝试初始化 ARConfiguration 时遇到以下错误:

// ARConfiguration() - init() is unavailable.

如何解决?

【问题讨论】:

【参考方案1】:

Apple 的 documentation of ARConfiguration 说:

AR配置

AR 会话配置的抽象基类。

似乎 Apple 想要将其设为 抽象 类,因此 init() 使其不可用。

你不能使用它的任何具体子类ARWorldTrackingConfigurationAROrientationTrackingConfiguration吗?

【讨论】:

以上是关于Xcode 9 Beta 5 中的“ARConfiguration() – init() 不可用”错误的主要内容,如果未能解决你的问题,请参考以下文章

在 Xcode 9 beta 5 中激活“焦点跟随选择”?

Xcode 9 beta 5 无法保存编辑的 .daes

Xcode 7 beta 5 中 iOS 9.0 之前的 UIStackView

由于信号 9 Xcode 11 beta,编译命令失败

如何在 Xcode 9 beta 2 中使用 UIDocumentBrowserViewController 创建新文档?

无法使用 Xcode 12.0 beta 5 构建项目