XIB File opens like an XML in XCode but opens correctly with Interface Builder

mabstrei picture mabstrei · May 27, 2011 · Viewed 14.2k times · Source

When I double-click my file StartWindow.xib in Xcode 4, it does not open into the integrated Interface Builder; it opens like a XML file. I can open all other xib files and they display as expected. I can open it with the old Interface Builder via "Open with".

What can I do to open it with the integrated Interface Builder?

Answer

jocull picture jocull · Aug 9, 2012

Had this happen to me awhile ago. I had to go to File -> Close myfilename.xib and then reopen it before it would honor the file type. I think the shortcut is Ctrl + Cmd + W if you are looking at the file.