Storyboard-split iOS application using * 'NSInternalInconsistencyException', reason: "NIB data is invalid."

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

[myApp] * Application terminated due to an uncaught exception "NSInternalInconsistencyException", reason: "NIB data is invalid."

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

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

Any ideas?

PS: I saw that it looked like a similar question about nibs and creating custom cells that suggested disabling auto-layout, but this application uses storyboards, has static cells, and auto-layout is already turned off.

+4
source share
2 answers

Make sure you do not have “Use Autostart” for this view. It will throw this error on startup on something older than on ios 6.

+9
source

I would suggest the following checklist

  • make sure the auto-off checkbox is not checked.
  • in IB, goto File Inspector> Document Versioning> Deploy and make sure it's iOS 5.1 or lower, and> Development make sure it's the previous version of Xcode (Xcode 4.5)
  • change the file type from [Default - Interface Builder Cocoa Touch XIB] to any other C source code or something like that, then go to another file and go back and go back to [Default - Cocoa Touch XIB Interface Builder]

The third checklist has saved me several times. AAPL really has very lame and broken development tools

+4
source

Source: https://habr.com/ru/post/1445592/


All Articles