Storyboard only shown in XML
Asked Answered
B

2

10

All of the sudden my .storyboard file for my project only is shown in XML.

enter image description here

I am well aware of the "right click" -> "Open As" -> "Storyboard" option, however this does not appear. It only displays "None".

enter image description here

How do I fix this so I can open my storyboard as an actual storyboard?

Barmecidal answered 16/12, 2016 at 19:48 Comment(2)
Did you try quitting and re-opening Xcode ?Weismannism
Yes that was my first option. I just restarted my mac also.Barmecidal
R
23

I suspect you are looking at Xcode's "Version Editor". Double check that you are not.

Version Editor enabled:

Disable it.


Older Xcode versions:

Standard Editor:

Version Editor:

Refresh answered 16/12, 2016 at 19:56 Comment(1)
you were exactly right. I was in "Blame" mode, and of course it isn't going to show the name and time of what was committed in storyboard because storyboards are not linear text, except when it's viewed as XML. So Xcode was forcing my storyboard to open in XML when Blame mode was enabled. It makes sense when you think about it.Barmecidal
L
0

select that storyboard -> now right click -> open As -> Interface Builder -Storyboard

Lawrenson answered 21/12, 2023 at 11:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.