JaNa Saadeddin
JaNa Saadeddin

Reputation: 135

iOS app Crash due to "Could not load NIB in bundle"

when i run the simulator there is a crash and i don't know why it give me this " Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'ViewController_iPhone''" could anyone help me ?

Upvotes: 6

Views: 15058

Answers (2)

Ronen Morecki
Ronen Morecki

Reputation: 434

I got the same, when working on iOS7 and get the crash when running on iOS6

To solve it:

If you are using xCode5 you should go to your Xib file and change the "Interface Builder Document" to view as iOS6.1 or earlier or change the "opens in" xcode version to 4.6 instead of 5.0

It solved the issue for me

Upvotes: 1

sergio
sergio

Reputation: 69027

Are you sure that a "ViewController_iPhone.xib" file has been added to your project?

Either add it to your project/target, or (if it already there) check the nib name you are using on the statement that is causing the crash, or check your info.plist file if the crash happens at startup.

If everything is correct, clean your project and build again.

Upvotes: 8

Related Questions