4

我在 Xcode 中的 xcdatamodel 文件似乎表现得很奇怪。

当我第一次构建我的项目时,它给出了一个错误

"Unable to write VersionInfo.plist for the versioned model at <Path>" 

"Compilation failed for data model at path <Path>"

但是当我再次运行它时,它运行没有错误。然后过了一段时间,当我再次构建时,错误再次弹出并再次消失。有时我会收到一条不同的错误消息,上面写着

无法删除现有模型

有任何想法吗 ??

4

2 回答 2

2

I was getting this same error, then eventually also got the error mentioned in this other question/answer. After following the suggestion in this answer, the error seems to have gone away:

Solution 1:

Delete the following directory:

/Users/john/Library/Developer/Xcode/DerivedData/name-of-app-gfofxrkhgcfgcfecjrnbbgyowlnf

I later got the same error where this first solution didn't work. This time the following solution worked instead:

Solution 2:

Recursively set the permissions to 777 for this directory:

chmod -R 777 /Users/john/Library/Developer/Xcode/DerivedData/name-of-app-gfofxrkhgcfgcfecjrnbbgyowlnf
于 2014-06-06T22:41:46.990 回答
0

1.删除派生数据: Windows >项目>选择您的项目>派生数据>删除

2.清理你的项目。

它应该工作。如果还是不行,

3.持续运行项目(这实际上对我有用..)

希望它有效!

于 2015-10-06T07:06:48.707 回答