Why am I getting a CoreData error in my iOS or OSX app when I'm not using CoreData?

三世轮回 提交于 2019-12-13 00:17:35

问题


I get the following error during a build.

"API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x7fb5ae208890, store PSC = 0x0) CoreData

Why am I getting a CoreData error in my app? I'm not using CoreData!


回答1:


This message is not referring to your use of CoreData, rather it is referring to Xcode's internal use in order to manage part of your project.

One possibility (it happened to me) is that there is corruption in one of the .xcassets files in your project.

In my case a problem with git-lfs meant that the .xcasset file did not have contents. Correcting this (in my case with a git-lfs pull) meant that once the assets within the .xcassets file were available, the compilation error was fixed.

So in general check .xcassets files and any other Xcode managed project resources that might require use of CoreData internally to XCode



来源:https://stackoverflow.com/questions/52126881/why-am-i-getting-a-coredata-error-in-my-ios-or-osx-app-when-im-not-using-coreda

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