I don’t understand why my app crashed, what was the problem ?
It shows me in console after getting crash:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/HarishYadav/Library/Application Support/iPhone Simulator/4.2/Applications/4E533D74-819B-4E6B-9237-D900D3420122/Journey.app> (loaded)' with name 'uMainWindow''
*** Call stack at first throw:
I really don’t know what mistake I make. Even I didn’t do any thing. I just opened the XIB for checking but I didn’t do anything in that. What was the problem and how can I solve it ?
The exception says you’re trying to load a XIB called
uMainWindow.xib(on the iPhone it’ll actually be nameduMainWindow.nibbut iOS knows that), but there is no such XIB in your bundle. You need to make sure it actually exists and is part of your project.Another common problem seems to be wrong file type: Select the file in the project navigator (the Finder-like thing on the left), then in the menu select “View -> Utilities -> File Inspector”. Now on the right, there’s a drop-down box called “File Type”. Make sure it is set to “Interface Builder XIB”.