Xcode 7 Beta 4: Interface Builder crashes if the root view tag in xib file has `translatesAutoresizingMaskIntoConstraints="NO"` property

Originator:siyu
Number:rdar://22069117 Date Originated:30-Jul-2015 02:42 AM
Status:Duplicate of 21963550 (Open) Resolved:
Product:Developer Tools Product Version:Xcode 7 Beta 4
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
Xcode 7 Beta 4: Interface Builder crashes if the root view has `translatesAutoresizingMaskIntoConstraints="NO"` property. It does not crash when there is no `translatesAutoresizingMaskIntoConstraints` property in the root level `view` tag.

Steps to Reproduce:
In Xcode 7 Beta 4, open `View1.xib` (which has translatesAutoresizingMaskIntoConstraints="NO” in its root level view tag) in the attached project.

Bonus - Steps to generate such xib file using Xcode 6.4:
1. In a storyboard scene, create a fully constrained view
2. Select the view and copy it to clipboard
3. Create a new xib file, delete all existing views, and paste the view.
4. Examine the xib file using a file editor and verify that `translatesAutoresizingMaskIntoConstraints=“NO”` is in the root level view tag.
5. Save and open this xib file in Xcode 7 Beta 4. Xcode will crash.

If you try the above steps in Xcode 7 Beta 4, it will crash after step 3.

Expected Results:
Xcode/ibtool should not crash

Actual Results:
But totally does

Regression:
Not happening in Xcode 6.4 or Xcode 7 beta 3

Notes:
Workaround: manually remove `translatesAutoresizingMaskIntoConstraints=“NO”` in the root level view tag from the xib file.
Project can also be downloaded from here: https://www.dropbox.com/s/cpl15wwpcoo8jxu/IBCrasher.zip?dl=0

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!