将 CoreData 数据模型文件添加到 XCode 4.2 会导致源代码控制停止工作并出现问号

发布于 2024-12-18 04:35:27 字数 907 浏览 3 评论 0原文

我已经尝试将 CoreData 数据模型文件添加到我的 XCode 项目中几个小时,但没有成功,该项目位于 SVN 源代码控制之下。每当我这样做时,我都会在 XCode 中看到以下显示:

screen shot

我现在已经关注了至少 5 或 6 篇不同的文章关于如何使 Subversion 与 XCode 4 中的 xcdatamodeld 文件/文件夹很好地配合,但没有取得太大成功。我即将放弃并将我的数据模型文件置于源代码控制之外,但我什至无法让 subversion/xcode 忽略它。获胜不是一个选择。

到目前为止我尝试过的事情:

  • Data.xcdatamodeld 的命令行添加/提交 - 这会导致 XCode 4.2 进入 tiz 并反复崩溃,
  • 忽略 XCode Organizer 中的文件 - 这会导致 XCode 报告有关缺少 Data.xcdatamodeld 文件的构建警告,该文件在 xcode、文件系统或 SVN 上不存在
  • 我已遵循建议这里: http://www.tmro.net/2010/10/subversion-and-core-data-versioning/ 只是让 XCode 在任何 SVN 操作期间开始崩溃(我不得不删除我的完全本地版本并从存储库重新加载)
  • 我可以在项目之外的受控环境中复制此内容

以前有人见过此问题并在 XCode 中解决了此问题吗?

我不可能是第一个尝试将 CoreData 数据模型文件添加到 SVN 控制项目的人!

谢谢

I've been trying in vain for hours now to add a CoreData Data Model file to my XCode project, which is under SVN source control. Whenever I do, I get the following display in XCode:

screen shot

I've followed at least 5 or 6 different articles now on ways to make subversion play nicely with xcdatamodeld files/folders in XCode 4 without much success. I'm about to just give up and leave my data model file outside of source control, but I can't even get subversion/xcode to ignore it. Winning is not an option.

Things I've tried so far:

  • command line add/commit of the Data.xcdatamodeld - this causes XCode 4.2
    to go into a tiz and crash repeatedly
  • ignoring the file in XCode Organizer - this causes XCode to report build warnings about a missing Data.xcdatamodeld file, which isn't there in xcode, on the file system or SVN
  • I've followed the suggestion here: http://www.tmro.net/2010/10/subversion-and-core-data-versioning/ only to have XCode then start crashing during any SVN operation at all (I had to delete my local version completely and reload from the repository)
  • I can replicate this in a controlled environment outside of my project

Has anyone seen this before and resolved this issue in XCode?

I can't be the first person to try to add a CoreData Data Model file to an SVN controlled project!

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

茶花眉 2024-12-25 04:35:27

我在 otf 字体包中也看到了这一点。

我的数据模型文件的存储方式很奇怪。在我的项目目录中,我有:

./Model.xcdatamodeld/Model.xcdatamodeld/contents

即双重目录

我仅在内部文件夹上执行了命令行 svn,即

cd ./Model.xcdatamodeld; svn ci Model.xcdatamodeld

它添加了内部目录和内容文件,?在 XCode 中消失了并且它提交得很好。不明白嵌套目录如何成为问题,但这对我有用。

I saw this also for an otf font bundle.

My datamodel file was stored oddly. In my project directory I had:

./Model.xcdatamodeld/Model.xcdatamodeld/contents

i.e. doubled-up directories

I did a commandline svn on the inner folder only, i.e.

cd ./Model.xcdatamodeld; svn ci Model.xcdatamodeld

It added the inner directory and the contents file, the ? disappeared in XCode and it committed fine. Don't see how the nested directories could be a problem, but this worked for me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文