Creating a project in Xcode5.1 that was modified in Xcode 6 GM to test earlier versions of iOS

My application supports at least iOS6 using the Xcode5.1 storyboard.

After I did some work in Xcode 6 GM, I need to test on iOS 6 Simulator. Xcode 6 GM does not have iOS 6 Simulator. So, I opened my project in Xcode 5.1.

But he cannot build. I can’t even open the storyboard in Xcode5.1.

The navigation bar says:

Main_iPhone.storboard
Interface Builder Storyboard Compiler Error
The document"(null)" requires Xcode6.0 or later.

And when I click on it, an invitation appears

The document "Main_iPhone.storyboard" requires Xcode 6.0 or later.
This version does not support constraints to layout margins. Open this document with Xcode 6.0 or later.
+4
source share
5 answers

Xcode 6 , ( .xib) Xcode 5.1. Xcode 5.1, Xcode 6.0, "margin".

, , Xcode 6, Xcode 5:

Xcode 6:

  • "" Xcode 5.1 Document Builder File Inspector. , Xcode 6.0 , - .

    Layout attributes relative to the layout margin on iOS versions prior to 8.0

  • - (, , ). "Margin" :

    <constraint firstItem="gZc-ET-UKM" firstAttribute="leading" secondItem="MMQ-IT-qOo" secondAttribute="leadingMargin" constant="-8" id="H3i-wo-2Mm"/>
    
  • , , . , , , " " " " " " " ". , , ( 8).

    Relative To Margin Image

, "Margin". , ​​ :

    <capability name="Constraints to layout margins" minToolsVersion="6.0"/>
  1. , - Xcode 5 .
+16

, :

, Main.storboard

  • Xcode 6;
  • Main.storboard ;
  • "margin" ;
  • .
+1

. Xcode 6, , Document Builder Document → Xcode 5.1 ( - )

0

nib , - pic 1. (. 2) , xcode 6, .

enter image description here

0

, , , , , "RED ERROR" Run.

iOS6 . , , , Xcode 6.

The error message still exists, and I cannot open the storyboard file in Xcode 5.1.

but at least I can test it on the old version of iOS. So now Xcode5.1 is only for testing for my application :(

If you find a better solution, try another question. Thank.

0
source

All Articles