xcdatamodel不是完全在源代码控制在subversion xcode4 [英] xcdatamodel is not entirely under source control in subversion xcode4
问题描述
我有一个项目在xcode下svn源控件。
它发生,xcdatamodel不是完全放在版本控制的xcode。
Xcode显示一个问号'?'状态图标,而在svn存储库上,我只能看到空的xcdatamodel目录。
I have a project in xcode under svn source control. It happens that the xcdatamodel is not entirely being put under version control by xcode. Xcode show a question mark '?' status icon, while on the svn repository I can only see the empty xcdatamodel directory.
首先,我想要留在xcode4外围,以了解为什么会发生这种情况,以及如何使用Xcode4本身解决这种情况。
At first I would like to stay within xcode4 perimeter to understand why this could have happened, and how can I solve the situation with Xcode4 itself.
然后,如果不可能,从终端窗口,svn命令应该对什么文件解决这个问题。
Then, if not possible, from the terminal window which svn command should I do on what files to solve this issue.
推荐答案
,您可以通过将Core Data文件拖放到终端窗口中来到 .xcdatamodeld
的路径。
in Terminal, you can get to the path of your .xcdatamodeld
by drag and dropping the Core Data file into the Terminal window.
因此 cd
。
然后输入 svn add。
(它会添加该目录中和下面的所有内容...换句话说,Core Data模型的所有文件)。
Then type in svn add .
(which adds everything in and underneath that directory... in other words, all the files of the Core Data model).
然后 svn commit
。这将带来Subversion提交窗口,一旦你提交数据模型,Xcode将不会显示?再次标记。
And then svn commit
. That will bring up the Subversion commit window and once you commit your data model, Xcode won't show a "?" mark anymore.
这篇关于xcdatamodel不是完全在源代码控制在subversion xcode4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!