Why am I getting a CoreData error in my iOS or OSX

2019-07-30 14:16发布

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条回答
疯言疯语
2楼-- · 2019-07-30 14:34

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

查看更多
登录 后发表回答