尝试查看.xcdatamodel时,XCode崩溃 [英] XCode crashes when trying to view an .xcdatamodel
问题描述
我有一个应用程序,由Core Data支持,我已经工作了一段时间。我使用版本控制(以前的SVN,现在Git)在不同的Mac之间移动。
I have an app, backed by Core Data, that I've been working on for awhile. I use version control (formerly SVN, now Git) to move it around between different Macs.
另一天,我无法打开项目。 OH CRAP。幸运的是,由于时间机器,我能够回到时间,并恢复到较早的版本。我怀疑有XCode项目文件或Core Data文件的东西在这里玩(我遇到了一些问题,,我猜),但一切似乎都在工作,所以我搬到了。
The other day, I was unable to open the project. OH CRAP. Luckily, due to Time Machine I was able to go back in time, and reverted to an earlier version. I suspected that something with either the XCode project files or the Core Data files was at play here (I ran into some of the problems that this guy did, I guess), but everything seemed to be working so I moved along.
但现在,我意识到当我尝试在XCode中打开.xcdatamodel文件时,我不能。它只是挂起,然后我结束军队戒烟。除此之外,该应用程序工作完全正常。我可以将其部署到模拟器或设备,它的工作原理。但我不知道我有什么希望编辑。
But now, I realized that when I try to open the .xcdatamodel file in XCode, I can't. It just hangs and then I wind up Force quitting. Aside from that though, the app works totally fine. I can deploy it to the simulator or a device and it works. But I don't know how I have any hope of editing. Any tips on what I can do to fix this?
推荐答案
我现在处于同样的情况,但是当我我仔细看看我的模型文件原始文本我看到所有元素有关于屏幕矩形的奇怪属性
I was right now in the same situation, but when I've a close look to my model file raw text I saw all elements with strange attributes regarding screen rect
<element name="myEntity" positionX="0" positionY="0" width="0" height="0"/>
所以我改为
<element name="myEntity" positionX="10" positionY="10" width="128" height="240"/>
。这样做了,现在我可以在Xcode中再次打开模型文件。
for all the entities. This did the trick, now I'm able to open to model file again in Xcode.
这篇关于尝试查看.xcdatamodel时,XCode崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!