Point files are generated by Xcode8. See WWDC2016 . I came across the same issue after deleting data due to another problem.
Two possible fixes:
1) Recommended modern approach
- Remove all created NSManagedObject subclasses from your project, if they exist.
- Set
Codegen
to Class Definition
in .xcdatamodel
for all objects - Make sure
Module
empty ("Global Namespace" in light gray) (Apple error workaround, see @ Chris Hansons answer )
Note. Even you do not see the generated files in your project, Xcode has a link to it, so you can write extensions, etc. For instance:
extension MyEntity { func doSomething() {
Alternatively, you can invoke + click on the generated file in Xcode.
2) Pretty paranoid, but bulletproof approach, ignoring the new Xcode features
- Remove all created NSManagedObject subclasses from your project, if they exist.
- Set
Codegen
to Manual/None
in .xcdatamodel
for all objects - Clear project
- Empty DerivedData folder
- Restart xcode
- Manually subclass
NSManagedObject
(in the Editor menu) - Make sure these files are added to your project.
- to build
If your problem persists, repeat:
source share