不使用CoreData时,为什么在iOS或OSX应用程序中出现CoreData错误? [英] Why am I getting a CoreData error in my iOS or OSX app when I'm not using CoreData?

查看:106
本文介绍了不使用CoreData时,为什么在iOS或OSX应用程序中出现CoreData错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建期间出现以下错误。

I get the following error during a build.

API滥用:尝试在非所有者协调器上序列化商店访问权限(PSC = 0x7fb5ae208890,商店PSC = 0x0)CoreData

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

为什么我的应用程序中出现CoreData错误?

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

推荐答案

此消息

一种可能性(发生在我身上)是,不是指您对CoreData的使用,而是指Xcode在内部使用以管理项目的一部分。

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

在我的案例中,git-lfs出现问题意味着.xcasset文件不包含内容。纠正此问题(在我的情况下,使用git-lfs拉动)意味着.xcassets文件中的资产可用后,编译错误便已修复。

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.

因此,通常检查.xcassets文件和其他可能需要在XCode内部使用CoreData的其他Xcode管理的项目资源

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

这篇关于不使用CoreData时,为什么在iOS或OSX应用程序中出现CoreData错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆