Xcode-beta 8. Can't create core data

前端 未结 9 1335
伪装坚强ぢ
伪装坚强ぢ 2020-12-13 09:06

I have been trying to add core data. And every time I got the same error:

error: filename \"EntityName +CoreDataClass.swift\" used twice: \'/Users/userName/         


        
9条回答
  •  别那么骄傲
    2020-12-13 09:44

    Follow these steps,

    1. Disable automatic generation for each entity individually by setting the "Codegen" setting to "Manual/None" for the entity.

    2. Change entity name to something else to get it to save. For example change the class name; build; change the class name back; build again.

提交回复
热议问题