The document Main.storyboard requires Xcode 8.0 or later

36,969

Solution 1

I have figured it out:

Open your Storyboard in Xcode 8.

Click on the File Inspector.

In Interface Builder Document section, select Opens In "Xcode 7.x" instead of "Latest Xcode (8.0)", as in following screenshot:

enter image description here

On doing this, you will get an alert saying "Saving for Xcode 7.x will close your document and data for Xcode 8.0 features will be removed."

Click Save and Close and you will be able to open storyboard in Xode 7.x.

Solution 2

I have a solution:

  1. Open storyboard as "source Code" (right click on storyboard -> open as -> source code).
  2. Delete this row:

<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  1. Delete this for all storyboards which you are using.
  2. Run app.

Solution 3

It's work for me

Right,click on main.stoaryboard.Go to open as -> source code and change dependencies

change

 <capability name="documents saved in the Xcode 8 format"
     minToolsVersion="8.0"/>  to

   <capability name="documents saved in the Xcode 7 format"
     minToolsVersion="7.0"/>

Follow the same step on launchscreen.stoaryboard

Solution 4

Same issue occurred after shifting from Xcode 9 to Xcode 8. I opened the storyboard in source code and changed

"<capability name="Safe area layout guides" minToolsVersion="9.0"/>" 
to <capability name="Safe area layout guides" minToolsVersion="8.0"/>

After this change when you will open storyboard in Interface builder this line will be removed.

Solution 5

I met this question too. I followed this method to change it: because I couldn't click the menu to choose 7.0 or later, I opened the main.storyboard and launchscreen.storyboard with source code, than I changed it's version manually and this solved the issue.

Share:
36,969
Bhumit Mehta
Author by

Bhumit Mehta

Sr. iOS and React Native Developer

Updated on July 08, 2022

Comments

  • Bhumit Mehta
    Bhumit Mehta almost 2 years

    I downloaded Xcode beta and opened my existing project to see how it works with Xcode 8 beta (I opened Storyboard file from Xcode 8).

    Now when I open my project from Xcode 7.3 I am not able to open storyboard file , it gives me following error

    This version does not support documents saved in the Xcode 8 format. Open this document with Xcode 8.0 or later.

    Xcode 7 error What should I do to revert back, as I want to continue working on Xcode 7.

    In Xcode 8 I was prompted to select device and I selected iPhone 6S, I think that part is somehow responsible for storyboard file not opening in Xcode 7

  • malhal
    malhal almost 8 years
    I had trouble getting the change to stick but what I did was change it, then save and close, at which point it didn't actually save because was still grey, then I quite Xcode (which hung) then force quit it, and now the storyboard is working in Xcode 7 phew!
  • mars
    mars almost 8 years
    @Bhumit Mehta It's not working when I have 2 different storyboards for ipad and iphone. Changes are saved only for one of them. Plz tell me any workaround.
  • Bhumit Mehta
    Bhumit Mehta almost 8 years
    @mars : You just need to repeat the same steps for both storyboards, I tried it in a test project and it worked.
  • mars
    mars almost 8 years
    @Bhumit Mehta Thnx 4 ur quick reply. When i make the above changes for ipad it saves them. But on repeating these steps for iphone it saves them too but ipad again shows up Latest Xcode(8.0).
  • sudoExclaimationExclaimation
    sudoExclaimationExclaimation almost 8 years
    this worked perfectly!!! Thanks! Since I had made changes to 2 storyboards, I had to reopen the project and do the change on both and do save and close and then open in xcode 7.
  • Dani.Rangelov
    Dani.Rangelov over 7 years
    Here is the line before the changes: <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> After the changes: <capability name="documents saved in the Xcode 7 format" minToolsVersion="7.0"/>
  • natecraft1
    natecraft1 over 7 years
    where is Interface Builder Document?
  • Massmaker
    Massmaker over 7 years
    BUT if you again will open a project in xCode 8 and go into a storyboard - you will have the storyboard file messed again and You will have to switch back to the 7.x again - and "Save and Cose" again
  • Bhumit Mehta
    Bhumit Mehta over 7 years
    @natecraft1 You can find Interface Builder Document in File Inspector of storyboard.
  • Elangovan
    Elangovan over 7 years
    After completing above steps, when opening storyboard as interface builder Xcode crashed !!!
  • huwiler
    huwiler over 7 years
    This procedure and others listed here as highly accepted answers (e.g. changing or removing the compatibility tag) may have worked in beta versions of xcode 8, but none of them are working for me in version 8.0. The only way to fix was to revert to a version prior to opening in xcode 8 (as Wain pointed out initially).
  • GeneCode
    GeneCode over 7 years
    XCode 8.0 release version (non beta) shows minToolsVersion="6.0"
  • GeneCode
    GeneCode over 7 years
    This may have worked in XCode 8 Beta. But in XCode 8 release, doing this will crash XCode.
  • Arfan Mirza
    Arfan Mirza over 7 years
    this is not working now, still error, and it auto set to 8.0 as storyboard open
  • kiedysktos
    kiedysktos over 7 years
    the accepted answer sounds far more secure than just deleting a line
  • jinglei
    jinglei over 7 years
    Replacing the code with different figures doesn't work for me. Only deleting the line of code fix the error. The accepted answer seems only to work when you already have Xcode8.
  • Kampai
    Kampai over 7 years
    This is so far the best solution, in case you dont have Xcode 8.0
  • Amit
    Amit over 6 years
    Thanks for the solution. Same issue occurred after shifting from Xcode 9 to Xcode 8. I changed "<capability name="Safe area layout guides" minToolsVersion="9.0"/>" to <capability name="Safe area layout guides" minToolsVersion="8.0"/> . After this change when you will open storyboard in Interface builder this line will be removed.
  • Siempay
    Siempay over 6 years
    thnks you saved me some hours of work, xcode alert me that some strange thing were found and repaired so my file will be fine after this modification?