Xcode 4 why do I see XML when clicking on MainStoryBoard.storyboard: seems like a bug
IosXcodeIos 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"
Solution 3 - Ios
This worked for me using xcode 6
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".