无法将模块coreData作为CoreData加载 [英] Cannot load module coreData as CoreData
问题描述
我在导入CoreData
的应用程序委托中收到此错误。根据我的阅读,这是因为我将项目命名为coreData。但是,我更改了项目的名称,然后将其删除,并且删除了 / Library / Developer / Xcode / DerivedData
中的所有内容。如果我使用CoreData创建一个项目,则会收到相同的错误。
我还删除了/ var / folders /
I get this error on my app delegate where I import CoreData
. From what I've read, it is because I named a project coreData. However I changed the name of the project, then deleted it, and I've deleted everything inside /Library/Developer/Xcode/DerivedData
. If I create a project with CoreData, I get the same error.
I have also deleted the contents of /var/folders/
有关如何解决此问题的任何信息?
Any info on how to fix this?
(Xcode 7.2)
(Xcode 7.2)
推荐答案
您与苹果公司自己的CoreData框架发生了命名空间冲突。重命名您的项目或使用其他名称创建一个新项目,然后在文件之间移动。
You have a namespace clash with apples own CoreData framework. Rename your project or create a new one with a different name and move your files across.
这篇关于无法将模块coreData作为CoreData加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!