The document "Main.Storyboard" could not be opened. Unrecognized file content

10,038

Solution 1

I just find a solution as below:

Make sure the storyboard extension should start from lower case s. Ex: it should be "Test.storyboard" not "Test.Storyboard"

Solution 2

For me opening the storyboard as "Source code", fixing merge conflicts and then also restarting Xcode did the job.

Solution 3

Just restarting XCode worked for me.

Thanks, XCode.

Share:
10,038
user831098
Author by

user831098

Updated on July 21, 2022

Comments

  • user831098
    user831098 almost 2 years

    I cannot open my Storyboard after updating from Xcode 7 to Xcode 8. Can anyone help? Inside it did not show any error.

  • Jake T.
    Jake T. about 7 years
    Restarting did it for me. I had opened the storyboard in interface builder fine, then opened as source code to remove plain styling from navigation items, and then it wouldn't let me open in interface builder even after git resetting that file to the previous state. All it took was an xcode restart.
  • Jordi Gámez
    Jordi Gámez about 5 years
    It worked when restarting Xcode! Thanks for sharing.
  • Mahan Mirshafa
    Mahan Mirshafa over 3 years
    Restarting did it for me as well! You have no idea how grateful I am :))