XIBs with auto layout are messed up after making them Xcode 8 compatible

Originator:bhagat.bhavik
Number:rdar://28342777 Date Originated:
Status:Duplicate (28221021 - Open) Resolved:
Product:Developer Tools Product Version:Xcode 8
Classification:Xcode Reproducible:
 
Summary:

We use XIBs througout our project and we have lots and lots of them. As Xcode 8 became publicly available we downloaded the Xcode 8 from App store and udpated our development environments. Now when I open any XIB it asks me "Choose an initial device view" and I started choosing "iPhone 6s plus" as the device. The XIBs are now resized to a particular device size and all the controls inside it are also resized accordingly because all of them are controlled via autolayout. Everything looks good in XIB. Now when I run the application (simulator or device) and go to the particular view couple of controls do not appear at all on screen. If I break the constraint in XIB by moving them 1 point from where they are supposed to be and then run the application, they load without any errors. I tried everything that was possible in XIB including deleting and adding all the constraints but I am still seeing the same problem. If I revert the XIB to Xcode 7.x compatibility then it works fine. But with Xcode 8 it doesnt allow me to make changes to XIB which is compatible with Xcode 7.x.

Comments

I don't see a fix. The only thing I know is a work around as mentioned above to intentionally break constraint. This issue has been marked as a duplicate of 28221021 by Apple.

By bhagat.bhavik at Sept. 27, 2016, 5:33 p.m. (reply...)

Facing the Same Problem.

Did you find any fix for this?

By babulal.sikar at Sept. 17, 2016, 9:33 a.m. (reply...)

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!