Xib Size Class iOS 7 issue

Number:rdar://18737656 Date Originated:22.10.2014
Status:Duplicate of 18490866 (Open) Resolved:
Product:Developer Tools Product Version:Xcode 6.1(6A1052d), OS X 10.10 (14A389)
Classification: Reproducible:Always
If you specify size classes in .xib files then changes that you make in Regular x Regular size class are not applied on iOS 7 iPad.

This problem is reproduced only with .xib files, not storyboards which work as stated in documentation:
"Size classes are backward compatible when:
- The app is built using Xcode version 6 or later;
- The deployment target of the app is earlier than iOS 8;
- The value of the height component is not compact."

I've attached a sample project to demonstrate the issue. There is a view in CustomView.xib file with two labels in it: first one with text "iPhone" and second one with text "iPad". "iPad" label and its constraints are disabled in Any x Any size class and enabled in Regular x Regular size class, "iPhone" label and its constraints are enabled in Any x Any size class and disabled in Regular x Regular size class. View from CustomView.xib is loaded and added to ViewController.

Steps to Reproduce:
1. Open project in attached archive.
2. Run it on any iPad with iOS 7.

Expected Results:
You should see label with "iPad" text.

Actual Results:
You will see label with "iPhone" text.

Xcode 6.1(6A1052d), OS X 10.10 (14A389)



'SizeClassIOS7Bug.zip' was successfully uploaded.

Sample project: https://github.com/imaks/SizeClassIOS7Bug


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!