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

你离开我真会死。 提交于 2019-12-03 01:03:45

Go to the File Inspector after selecting the nib file. Under Identity and Type, select the drop down list for File Type and choose the topmost element Default - com.apple....

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.

I had this problem when I had the "Blame" view toggled on!

In File Inspector right click on your xib and select Open As -> Interface Builder

This worked for me. i mistakenly got to the blame view when i had this issue,

but clicking on the "show standard editor" worked instantly

I had the same problem recently, make sure you have selected the appropriate Editor view in the upper right hand corner, which would either be the Standard Editor or Assistant Editor. The Version Editor option will make the .xib file appear in its .xml form.

LokiDil

For me in Localization section nothing has added.

I had added a new localization English.

Now XIB is shown properly.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!