0

Xcode 10.3 started generating errors in all my projects containing VNCoreMLModel() class in lines like this:

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

Here's how this error looks like:

"Use of unresolved identifier 'ObjectDetector"

6 months ago (in Xcode 10) all my apps worked fine and there were no errors.

How can I fix it?

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

enter image description here

P.S. But for macOS apps and Playground projects I'm able to use Vision framework.

Andy Jazz
  • 49,178
  • 17
  • 136
  • 220

1 Answers1

0

It was a bug. Apple fixed it in Xcode 11.1.

Andy Jazz
  • 49,178
  • 17
  • 136
  • 220