Turn off codegen for XCode CoreData model

别来无恙 提交于 2020-01-11 11:57:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!