Xcode 7.2 project migration to OS X El Capitan aborts build

I started OS X Mavericks before with Xcode 7.1, I just upgraded to OS X El Capitan and Xcode 7.2. My application ran fine on the simulator and device without any warnings for the storyboard. Now I see a bunch of warnings about the missing limitations in the storyboard, and the application crashes with this error:

Application termination due to the uncaught exception "NSInvalidUnarchiveOperationException", reason: "Could not instantiate IBNSLayoutConstraint class"

I also tried the solution posted here: Failed to instantiate IBNSLayoutConstraint class

I could not find placeholder = "YES" anywhere in the xml, and my storyboard is too large to really go through each constraint to check if the Placeholder box is mistaken for any constraint.

I see the following warnings when viewing an xml storyboard.

enter image description here

+5
nslayoutconstraint xcode7 xib osx-elcapitan
Dec 09 '15 at 23:48
source share
4 answers

You are not actually using a storyboard, but Xib. In your file you will find sections such as:

<mask key="constraints"> <exclude reference="6fq-cy-xp8"/> </mask> 

You want to open your .xib as "Source" and delete them so that the restrictions become installed .

+4
Dec 10 '15 at 0:24
source share

Select Storyboard Disable Size to solve the problem. Hope this helps you! Thanks After creating the project, you can turn on the size class again.

enter image description here

+1
Dec 11 '15 at 15:26
source share

and first of all, make sure that when you use IB to verify that you have no restrictions with the checkbox selected , “if the view for them belongs to“ not installed . ”Xcode 7.1 does not even give a warning about this, but 7.2 causes a crash

0
Dec 14 '15 at 21:00
source share

Disable AutoLayout on storyboard. This should solve your problem.

0
Jan 11 '16 at 7:10
source share



All Articles