Could not load NIB in bundle error in storyboard
Solution 1
It seems it was memory issue. Although I am using ARC still I need to manage memory allocation by setting variables to nil.
Solution 2
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.
Solution 3
Shift + Command + K
or
Product > Clean
This fixed it for me.
Solution 4
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.
Solution 5
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
![Baby Groot](https://i.stack.imgur.com/FdHky.jpg?s=256&g=1)
Comments
-
Baby Groot about 2 years
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''
-
Baby Groot almost 11 yearsI have seen almost all the questions. It mostly says there is something with that file. But I don't have any such file
UIViewController-w6Q-ra-j06
in y project in which it is showing this error. -
mbpro almost 11 yearsThis is internal designation of the file, not the filename itself.
-
mbpro almost 11 yearsI've edited my answer. I remember I had a problem and that was the one causing it.
-
Baby Groot almost 11 yearsI have checked that as well. Actually initially it's downloading lot's of data. If I restrict it to 5-10. It's working fine. If I am trying to save all the data it is getting crashed with this crash report.
-
mbpro almost 11 yearsDoes it work without saving data? What kind of data? Where and how do you save it? Do you persist a managed object? IS there any pointer in such object to your view controller?
-
Baby Groot almost 11 yearsYes. It's StoreFlixIpad.storyboard only. And it's working fine also if number of records are less.
-
Voldy almost 9 yearsI had the same problem with brand-new just created project. Clean helped! Thanks a lot!
-
Liam almost 9 yearsThanks, I wasn't aware there was a keyboard format available.
-
Enrico Susatyo over 8 yearsDamn, this is still happening in 2016.
-
Florin Odagiu almost 5 yearsCan't upvote this enough...this did it for me (the deselecting / selecting part especially; clean project by itself was not enough).