Apple Vision 错误 – 使用未解析的标识符 'ObjectDetector'

Apple Vision Error – Use of unresolved identifier 'ObjectDetector'

Xcode 10.3 开始在我所有包含 VNCoreMLModel() class 的项目中生成错误,如下所示:

let visionModel = try? VNCoreMLModel(for: ObjectDetector().model)

此错误如下所示:

"Use of unresolved identifier 'ObjectDetector"

6 个月前(在 Xcode 10)我所有的应用程序都运行良好,没有错误。

我该如何解决

Also, when I create new iOS app in Xcode 10.3 I can't use Vision framework.

P.S。但对于 macOS 应用程序和 Playground 项目,我可以使用 Vision 框架。

这是一个错误。 Apple 在 Xcode 11.1.

中修复了它