Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS app with Storyboard crashing with *'NSInternalInconsistencyException', reason: 'The NIB data is invalid.'

We have an app built using iOS 6 sdk (deployable on iOS 5) using Storyboards which crashes in iOS 5 (only) with this error:

[myApp] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The NIB data is invalid.'

The scene in question is a subclass of UITableViewController which contains a UITableView and an added UITextView property.

I have no idea what is invalid about this or why it works fine in iOS 6.

Any ideas?

PS: I saw what appeared to be a loosely similar question regarding nibs and creating custom cells which suggested turning off auto-layout, but this app uses storyboards, has static cells, and auto-layout is already off.

like image 709
Andrew Kinnie Avatar asked Dec 11 '22 20:12

Andrew Kinnie


1 Answers

Be sure that you don't have "Use Autolayout" enabled for that view. It will throw that error when ran on anything older then ios 6.

like image 58
joshOfAllTrades Avatar answered Dec 27 '22 12:12

joshOfAllTrades