94

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

2
  • 7
    Revert changes in version control
    – Wain
    Jun 16, 2016 at 6:46
  • 1
    @Wain Yes that was always an option but I had some uncommited changes and also wanted to know the solution (If not time consuming) Jun 16, 2016 at 6:59

9 Answers 9

213

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.

9
  • 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!
    – malhal
    Jun 22, 2016 at 13:09
  • @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.
    – mars
    Jun 23, 2016 at 9:46
  • @mars : You just need to repeat the same steps for both storyboards, I tried it in a test project and it worked. Jun 23, 2016 at 9:55
  • 2
    where is Interface Builder Document?
    – natecraft1
    Sep 1, 2016 at 19:04
  • 10
    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
    – Massmaker
    Sep 8, 2016 at 11:16
67

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.
5
  • 13
    After completing above steps, when opening storyboard as interface builder Xcode crashed !!!
    – Elangovan
    Sep 19, 2016 at 12:23
  • 3
    This may have worked in XCode 8 Beta. But in XCode 8 release, doing this will crash XCode.
    – GeneCode
    Oct 11, 2016 at 10:18
  • this is not working now, still error, and it auto set to 8.0 as storyboard open Oct 13, 2016 at 8:09
  • the accepted answer sounds far more secure than just deleting a line
    – kiedysktos
    Oct 24, 2016 at 7:26
  • 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.
    – jinglei
    Nov 11, 2016 at 9:36
27

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

2
  • 2
    This is so far the best solution, in case you dont have Xcode 8.0 Feb 1, 2017 at 17:12
  • 2
    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.
    – Amit
    Aug 14, 2017 at 18:54
10

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.

1
  • 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?
    – Siempay
    Sep 26, 2017 at 11:07
7

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.

2
  • 5
    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"/> Aug 17, 2016 at 12:41
  • XCode 8.0 release version (non beta) shows minToolsVersion="6.0"
    – GeneCode
    Sep 23, 2016 at 2:05
4

Since XCode 8 constantly keeps converting storyboard files to XCode 8 format every time I open it (it's an old project, and everything gets messed up), I ended up downloading XCode 7 and using it just to edit storyboard files (and close it before i switch back to XCode 8). If I accidentally open storyboard file in 8, I just reset that file to the last commit, since the project is on GIT.

Stupid, I know, but it works.

3
<dependencies>
    <deployment identifier="iOS"/>
    <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9049"/>
    <capability name="Constraints to layout margins" minToolsVersion="6.0"/>
</dependencies>

Replace your dependencies to this dependencies

0
0

Open storyboard as Source Code and search for minToolsVersion key. Set that value as 7.0 and open that storyboard in Xcode 7.x

0

As @Bhumit_Metha given straight forward solution. Unfortunately, in my case I don't have MAC with latest Xcode (8.0+) version make those changes to support new 'xib' files in my old xcode (7.x).

So I ended up with a working solution with simple steps as follows :

[1] Create a empty xib file in your xcode 7.x.

[2] Right click on the empty xib to view source and copy all of that.

[3] Now open new xib (one with version error) in source viewer. Paste previous code on top.

[4] Replace all the lines of old with new inside tag : <objects> ...... </objects>

And that's all. Will work with compatible to xcode 7.x!

Tip : While opening next time in new xcode, make sure to select compatibility mode.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.