I had the same issue in Xcode 4.3 today. This is definitely a bug in Xcode, and it has something to do with opening xib files saved in older versions of Xcode. To get around this, I did the following, some of which may not be needed, but I listed all this just in case:
- quit xcode
- copied my xib file foo.xib to foo2.xib
- svn rm foo.xib
- svn commit
- Update svn (now foo.xib is not located on disk)
- open my xcode project, foo.xib is displayed in red since it cannot find the file. remove foo.xib from the project.
- drag foo2.xib from the search engine to my project
- click on foo2.xib - for me it was open just fine
At this point, I am sure that either the subversion conflict with xcode or xcode retains an outdated link to the file name. But now that I have the file open, I do the following:
- Show the right panel of the IDE settings (where you can set the NIB parameters).
- Click the top left icon in the right pane (the prompt says "Show file inspector").
- There is a section called “Document Builder Document” and it has a popup window “Document Versioning”. Xcode 4.2.1 is displayed in my file, so I changed it to Xcode 4.3.
- At this point, I also took advantage of several other settings in my nib, for example, changing the window title. The essence of this was to make sure that the tip would be re-stored.
- Now in the left pane, which lists the project files, I clicked on "foo2.xib" and renamed it to "foo.xib" - Xcode automatically adds it back to the subversion repository.
And after that, everything just magically worked.
I will indicate that I went through and changed all my nib files after that to save as "Xcode 4.3" in the Document Documenting area.
I sent a crash report and the contents of the beer to the apple in the error report, but if someone wants to see what actually happened, I pasted it here:
http://pastebin.com/sC0pBUfu
Hope this helps someone, it took me about four hours to figure this out. Playing nib files does not work, the problem with the file name and IDE version is saved in the nib file, which I suspect.
source share