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

IosXcode

Ios Problem Overview


In an Xcode project, I see XML when clicking on MainStoryBoard.storyboard instead of the graphical design, why and how to restore the right view ?

Update: I think it's a bug of XCode 4.2 because on another project, when I click on version editor I have XML but when I click on standard editor it shows visual design.

Is there a way to fix this and not to force me to recreate my visual design by hand once again ?

Ios Solutions


Solution 1 - Ios

To fix the issue, right-click MainStoryboard.storyboard, then choose "Open as >" and then "Interface Builder - iOS Storyboard".

Solution 2 - Ios

Make sure you are not using the source control editor, which shows you the changes for a given file. You can change this in the Toolbar at the top right.

Check this link in the section "Editor"

version-editor

Solution 3 - Ios

This worked for me using xcode 6 enter image description here

Solution 4 - Ios

I've run into this issue, but it was a bit different. I had a merge issue with Git on my storyboard, so I had to manually edit the XML to resolve the conflict. After this, there was no 'Interface Builder-iOS Storyboard' option available in the "Open as" menu so I couldn't change it back to the visual editor. To fix this I simply restarted XCode and everything went back to normal.

Solution 5 - Ios

After using SeanK's solution (restart XCode) I still manually needed to right-click the storyboard and choose Open as > Interface Builder - iOS Storyboard.

Solution 6 - Ios

If you have more than just one storyboard go back and forth - click different one, go back to the one you want to display as an iOS storyboard. It's not XML any longer.

Solution 7 - Ios

Change the extension like this "your_storyboard.storyboard" then right-click MainStoryboard.storyboard, then choose "Open as >" and then "Interface Builder - iOS Storyboard".

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser310291View Question on Stackoverflow
Solution 1 - IosJonathanView Answer on Stackoverflow
Solution 2 - IosBesiView Answer on Stackoverflow
Solution 3 - IosEdwin O.View Answer on Stackoverflow
Solution 4 - IosSeanKView Answer on Stackoverflow
Solution 5 - IospiersbView Answer on Stackoverflow
Solution 6 - IosViktor KuceraView Answer on Stackoverflow
Solution 7 - IosDalal AlharbiView Answer on Stackoverflow