问题
Making CoreData model in XCode with already declared classes by myself, compiler code generated duplicates for me. How get rid of that?
回答1:
You can disable all automatic code generation by setting the "tools version" for the data model file to Xcode 7.3. This won't have any other effect on the model-- there are no changes to the file format.
回答2:
In the Data Model editor, change the Codegen option in the data model inspector on the right to "Manual/none":
Sadly, as far as I know, you will have to do this for every Entity separately: there is no overall override.
来源:https://stackoverflow.com/questions/41505621/turn-off-codegen-for-xcode-coredata-model