Cannot open the underlying data model in Xcode

http://dl.dropbox.com/u/9580846/Screen%20shot%202011-08-21%20at%208.51.00%20PM.png

I get the following when I try to view the .xcdatamodeld file. I started a project on Lion, and I share my projects with my macbook, which runs a snow leopard. When I try to view the file, I get the error shown above. The file is in the folder, but I'm not sure why I cannot view the file and change my data model. Can someone help?

thanks

+4
source share
1 answer

user831090 is right that the problem is with the version of Tools. In the interest of others (since I spent a lot of time on this), the exact error message is:

The "elements" of a file cannot be opened because there is no such file.

To fix the problem, you need to change the version of Tools in Xcode 4.1 to Lion. In Xcode, there is no way to change the version of Tools in earlier versions.

To do this, select the data model in the project tree, make sure that you show the Utilities panel to the right of the Xcode window, and you see a drop-down menu to change the version of Tools. Change it to "Xcode 3.2".

Setting the Tools Version

+5
source

All Articles