Crash iOS app due to "Failed to load NIB bundled"

when I run the simulator, it crashes, and I don’t know why it gave me this “Application termination due to unselected exception“ NSInternalInconsistencyException ”, reason:“ Failed to load NIB in package: “NSBundle (loaded)” named “ViewController_iPhone "'can someone help me?

+5
source share
2 answers

Are you sure the ViewController_iPhone.xib file has been added to the project?

Either add it to your project / target, or (if it is already there) check the nib name that you use in the instruction causing the crash, or check the info.plist file if there was a crash on startup.

, .

+5

, iOS7 iOS6

:

xCode5, Xib "Document Builder Document" iOS6.1 , " xcode 4.6 5.0

+1

All Articles