How to use the generated classes after Xcode did “Class Definition” for Core Data?
问题 I'm using Xcode 11.3.1 and I choose Class Definition for example Entity in a new project. I can't seem to reference the generated class. Even after I press build let x = Project() Use of unresolved identifier 'Project' 回答1: Can't reproduce. I created a new vanilla Single View app with Core Data direct from the template and made one Entity just like yours: Then I added one line of code to the view controller's viewDidLoad ; it compiles just fine: class ViewController: UIViewController {