Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn off codegen for XCode CoreData model

Making CoreData model in XCode with already declared classes by myself, compiler code generated duplicates for me. How get rid of that?

like image 658
zzheads Avatar asked Dec 08 '22 19:12

zzheads


2 Answers

In the Data Model editor, change the Codegen option in the data model inspector on the right to "Manual/none":

enter image description here

Sadly, as far as I know, you will have to do this for every Entity separately: there is no overall override.

like image 124
pbasdf Avatar answered Dec 25 '22 10:12

pbasdf


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.

enter image description here

like image 38
Tom Harrington Avatar answered Dec 25 '22 09:12

Tom Harrington