无法确定生成CoreData代码的生成文件路径 [英] Could not determine generated file paths for CoreData code generation

查看:2335
本文介绍了无法确定生成CoreData代码的生成文件路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在为不同目标构建项目时,我收到此错误:

While building my project for different target I am getting this error:


无法确定Core数据代码生成的文件路径
generation:
错误Domain = NSCocoaErrorDomain Code = 260没有当前版本的模型
在路径
/ Users / abc / Documents / Code / xyz-ios / ABC / iPhoneXMPP / SRT / Model.xcdatamodeld:
UserInfo = {NSFilePath = / Users / abc / Documents / Code / xyz-ios / ABC / iPhoneXMPP / SRT / Model.xcdatamodeld,
NSLocalizedDescription =路径模型的当前版本
/Users/abc/Documents/Code/xyz-ios/ABC/iPhoneXMPP/SRT/Model.xcdatamodeld:}

Could not determine generated file paths for Core Data code generation: Error Domain=NSCocoaErrorDomain Code=260 "No current version for model at path /Users/abc/Documents/Code/xyz-ios/ABC/iPhoneXMPP/SRT/Model.xcdatamodeld:" UserInfo={NSFilePath=/Users/abc/Documents/Code/xyz-ios/ABC/iPhoneXMPP/SRT/Model.xcdatamodeld, NSLocalizedDescription=No current version for model at path /Users/abc/Documents/Code/xyz-ios/ABC/iPhoneXMPP/SRT/Model.xcdatamodeld:}

错误提到的路径是


/ Users / abc / Documents / Code / xyz-ios / ABC / iPhoneXMPP / SRT / Model。 xcdatamodeld

/Users/abc/Documents/Code/xyz-ios/ABC/iPhoneXMPP/SRT/Model.xcdatamodeld

但SRT文件夹位于我的文件夹结构中的Temp文件夹中。
如何解决此问题?

" but "SRT" folder is inside "Temp" folder in my folder structure. How can I resolve this issue?

推荐答案

在我的案例中,这是Model.xcdatamodeld在发生冲突时的结果与远程(源或头)合并。不知何故,GIT没有发现这场冲突,而且冲突是无冲突的。

In My Case it was a result of Model.xcdatamodeld having conflicts when Merged with Remote (Source or Head). Somehow this conflict wasn't detected by GIT and slid through as Conflict Free.

解决方案:将Model.xcdatamodeld打开为xml(使用textEditor)并搜索冲突(>>>)。修复冲突并保存。

Resolution: Open Model.xcdatamodeld as xml (with textEditor) and search for conflicts (>>>). Fix conflict and Save.

这篇关于无法确定生成CoreData代码的生成文件路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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