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!
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!
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