Xcode 4 why do I see XML when clicking on MainStoryBoard.storyboard: seems like an error

In the Xcode project, I see XML when I click on MainStoryBoard.storyboard instead of graphic design, why and how to restore the correct view?

Update: I think this is an Xcode 4.2 error, because in another project, when I click on the version editor, I have XML, but when I click on the standard editor, it shows the visual design.

Is there a way to fix this and not make me recreate the visual design again?

+48
ios xcode
Feb 27 '12 at 12:53 on
source share
7 answers

To fix the problem, right-click MainStoryboard.storyboard, then select "Open As>" and then "Interface Builder - iOS Storyboard".

+111
Apr 10 '12 at 15:35
source share

Make sure you are not using the source control editor, which shows you the changes for this file. You can change this in the toolbar in the upper right corner.

Check this link in the "Editor" section.

version-editor

+26
Feb 27 '12 at 13:01
source share

This worked for me using xcode 6 enter image description here

+14
May 13 '15 at 9:42
source share

I ran into this problem, but it was a bit different. I had a merge problem with Git on my storyboard, so I had to manually edit the XML to resolve the conflict. After that, the “Open As” menu did not have the “Interface Builder-iOS Storyboard” option, so I could not change it back to the visual editor. To fix this, I just restarted Xcode and everything returned to normal.

+4
Jan 02 '13 at
source share

After using the SeanK solution (restart Xcode), I still need to manually right-click the storyboard and select Open as> Interface Builder - iOS storyboard.

+4
Feb 08 '14 at 2:06
source share

If you have more than one storyboard, go back and forth - click on another, return to the one you want to display as an iOS storyboard. This is not XML anymore.

0
01 Oct '14 at 1:58
source share

Change the extension as follows: your_storyboard.storyboard, then right-click MainStoryboard.storyboard, then select Open As> and then Interface Builder - iOS Storyboard.

0
Jun 02 '18 at 13:54 on
source share



All Articles