Reputation: 4279
I am working with storyboards for the first time.
My app is crashing whenever I run the build for very first time where it is downloading all the data from server. It's showing me error in UIViewController-w6Q-ra-j06
although there is no such file with this name in my project.
Any pointers or help would be appreciated.
2013-08-14 15:40:42.967 storeFlix[1614:c07] *** Terminating app due to uncaught exception
'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle
</Users/user/Library/Application Support/iPhone Simulator/6.1/Applications/0AC8F6F7-5B69-4F94-
BCF1-DFE8398AFEFA/storeFlix.app> (loaded)' with name 'UIViewController-w6Q-ra-j06' and
directory 'StoreFlixIpad.storyboardc''
Upvotes: 4
Views: 13585
Reputation: 48085
What fixes for me after Product -> Clean Build Folder
is to go to Target -> General -> Main Interface
Here Main
is your main storyboard name
Upvotes: 1
Reputation: 6680
Try to re-enter the name of your storyboard in your target general settings. For instance, if your storyboard is Main.storyboard
, write again Main.storyboard
in the Main Interface
field.
Upvotes: 1
Reputation: 4584
Shift+Command+K
I was getting this error on a fresh (empty) project after creating a storyboard file and setting it as the main interface in the project's settings.... drove me nuts for 15 minutes.
Upvotes: 13
Reputation: 1379
The problem I had was that I was instantiating a viewController that was the root controller of a navigation controller. Solution was to just instantiate the navigation controller itself, this will instantly instantiate the root controller too.
Upvotes: 1
Reputation: 4279
It seems it was memory issue. Although I am using ARC still I need to manage memory allocation by setting variables to nil.
Upvotes: 0
Reputation: 2255
What is the name of your storyboard file? Are you loading it programmatically? Or is it specified in your project settings?
See if you used:
StoreFlixIpad.storyboardc
instead of:
StoreFlixIpad.storyboard
Upvotes: 2
Reputation: 2490
There can be many reasons for this particular problem, but first check Target membership and XIB name, as advised here: Could not load NIB in bundle
Check also very carefully if there is any kind of control who's name has changed in header files, but the referencing outlet stayed the same.
Upvotes: 3