与Xcode 4.1(Lion)和Xcode 3.2.5(雪豹)之间的.xcdatamodeld的兼容性问题 [英] Compatibility problem with .xcdatamodeld between Xcode 4.1 (Lion) and Xcode 3.2.5 (snow leopard)

查看:186
本文介绍了与Xcode 4.1(Lion)和Xcode 3.2.5(雪豹)之间的.xcdatamodeld的兼容性问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Core Data的数据模型有问题。



1 /我已经在xcode 4.1(狮子)上创建了一个数据模型,他们的关系。在右边的检查器中我已经检查工具版本:最小:Xcode 3.2而不是Xcode 4.1。



2 /当我尝试重新打开我的项目, Xcode 3.2.5(在雪豹),我点击mydatamodel.xcdatamodeld,然后在mydatamodel.xcdatamodel,但什么都没有发生!这就像我的xcdatamodel文件是空的,但它是一个4.9 Mo文件!我的xcdatamodel文件拒绝打开,这是非常令人沮丧。



3 /我试图只添加xcdatamodeld文件在xcode 3.2.5的xcdatamodeld文件夹但它正在生成Xcode的崩溃。



4 /我试图在xcode 3.2.5(在雪豹)上创建test.xcdatamodel,并复制粘贴文件元素和布局从mydatamodel.xcdatamodel(在Xcode 4.1在狮子上创建)到test.xcdatamodel但同样的事情,数据模型拒绝打开!



如果任何人可以帮助我,这将是巨大的!

解决方案

.xcdatamodel bundle的格式在这些Xcode的2个版本。元素和布局的格式现在基于xml,而它们以前是二进制数据。



您可以在文件检查器中更改所需的最低Xcode版本。 xcdatamodel文件。




I have a problem with a Data Model using Core Data.

1/ I've created a data model on xcode 4.1 (on lion) with my entities and their relationships. In the inspector on the right i've checked "Tools version" : Minimum : Xcode 3.2 instead of Xcode 4.1.

2/ When i try to reopen my project, in Xcode 3.2.5 (on snow leopard), I click on "mydatamodel.xcdatamodeld", then on "mydatamodel.xcdatamodel", but nothing happen ! It's like my xcdatamodel file was empty but it's a 4.9 Mo file ! My xcdatamodel file refuses to open and it's very frustrating.

3/ I've tried just to add only the xcdatamodel file which is in the xcdatamodeld folder on xcode 3.2.5 but it's generating a crash of Xcode.

4/ I've tried to create "test.xcdatamodel" on xcode 3.2.5 (on snow leopard) and to copy paste files "elements" and "layout" from "mydatamodel.xcdatamodel" ( created on Xcode 4.1 on lion) to "test.xcdatamodel" but same thing, the data model refuses to open !

If anyone can help me, it will be great !

解决方案

The format of .xcdatamodel bundles was changed between these 2 versions of Xcode. The format of the elements and layout are now xml based, whereas they used to be binary data.

You can change the minimum required Xcode version in the file inspector for your .xcdatamodel file.

这篇关于与Xcode 4.1(Lion)和Xcode 3.2.5(雪豹)之间的.xcdatamodeld的兼容性问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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