Haris ur Rehman
Haris ur Rehman

Reputation: 2663

xcode - How to downgrade xcode 6 storyboard file to xcode 5?

How can I downgrade one of the storyboards that was created in xcode 6 to xcode 5? Note that I am using xcode 5.

Upvotes: 2

Views: 1254

Answers (3)

rob mayoff
rob mayoff

Reputation: 385890

You must use Xcode 6 to downgrade a storyboard. If you can't run it, you need to find a friend who can.

Open the storyboard in Xcode 6. In the File Inspector, find the “Opens In” menu and set it to “Xcode 5.1”. If the storyboard uses size classes, choose the size class to preserve. Save the file.

downgrading storyboard

Upvotes: 10

bllakjakk
bllakjakk

Reputation: 5065

Already answered before by @Mark Edington

Perform these steps to make a storyboard modified by Xcode 6 load and compile again with Xcode 5:

Using Xcode 6:

1. Set the "Opens in" to Xcode 5.1 in the Interface Builder Document Section of the storyboard File Inspector
2. Uncheck the "Use Size Classes"
3. Delete the constraints added using Xcode 6
4. Ensure that the storyboard no longer contains this key at the top of the file:

<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
  1. Open the project in Xcode 5, recreate the deleted constraints and compile

Upvotes: 1

Tommy Devoy
Tommy Devoy

Reputation: 13549

Open your storyboard in Xcode. Open the Utilities panel on the right, click on the File Inspector tab, and choose from the Interface Builder Document dropdown.

enter image description here

Upvotes: 1

Related Questions