Reputation: 4446
I'm having an issue with Xcode where all usages of my CoreData classes show Use of undeclared type [class name]
. The project builds and runs correctly, but all instances where I reference my CoreData classes get the red warning highlighting in Xcode and none of the code completion works. Has anyone else run into this issue? Here's what I've tried:
I am using Xcode 9.4.1 (using beta versions of 10 is not an option) and have run out of ideas. The codebase is written in Swift 4. Any help is appreciated.
Upvotes: 0
Views: 1315
Reputation: 4446
Looks like it's something to do with CoreData's code generation. Previously, turning the codegen to None then changing it back to Class Definitions worked. Seems like that is no longer resolving the issue for me. I had all of my entities set to generate class definitions:
After I changed this to Manual and generated my classes manually, things are working as expected.
Upvotes: 2