Could not load NIB in bundle error in storyboard

13,273

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

Share:
13,273
Baby Groot
Author by

Baby Groot

(づ°‿°.)づ

Updated on June 04, 2022

Comments

  • Baby Groot
    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
    Baby Groot almost 11 years
    I 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
    mbpro almost 11 years
    This is internal designation of the file, not the filename itself.
  • mbpro
    mbpro almost 11 years
    I've edited my answer. I remember I had a problem and that was the one causing it.
  • Baby Groot
    Baby Groot almost 11 years
    I 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
    mbpro almost 11 years
    Does 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
    Baby Groot almost 11 years
    Yes. It's StoreFlixIpad.storyboard only. And it's working fine also if number of records are less.
  • Voldy
    Voldy almost 9 years
    I had the same problem with brand-new just created project. Clean helped! Thanks a lot!
  • Liam
    Liam almost 9 years
    Thanks, I wasn't aware there was a keyboard format available.
  • Enrico Susatyo
    Enrico Susatyo over 8 years
    Damn, this is still happening in 2016.
  • Florin Odagiu
    Florin Odagiu almost 5 years
    Can't upvote this enough...this did it for me (the deselecting / selecting part especially; clean project by itself was not enough).