the problem:
If auto layout is enabled for a NIB file, iPhone 5.0 simulator throws the following exception:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The NIB data is invalid.'
What is interesting is that iPhone 6.0 simulator throws no error.
the solution:
Open the XIB file, click on "File's Owner", choose "File Inspector" tab on the right, and under "Interface Builder Document" section unselect "Use Autolayout" checkbox.
If auto layout is enabled for a NIB file, iPhone 5.0 simulator throws the following exception:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The NIB data is invalid.'
What is interesting is that iPhone 6.0 simulator throws no error.
the solution:
Open the XIB file, click on "File's Owner", choose "File Inspector" tab on the right, and under "Interface Builder Document" section unselect "Use Autolayout" checkbox.