5

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''
stevekohls
  • 2,214
  • 23
  • 29
Baby Groot
  • 4,637
  • 39
  • 52
  • 71

8 Answers8

13

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.

RyanM
  • 4,474
  • 4
  • 37
  • 44
5

Shift + Command + K

or

Product > Clean

This fixed it for me.

Rick Smith
  • 9,031
  • 15
  • 81
  • 85
Liam
  • 2,659
  • 1
  • 14
  • 16
3

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.

Community
  • 1
  • 1
mbpro
  • 2,460
  • 3
  • 22
  • 37
  • 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. – Baby Groot Aug 14 '13 at 12:14
  • This is internal designation of the file, not the filename itself. – mbpro Aug 14 '13 at 12:15
  • I've edited my answer. I remember I had a problem and that was the one causing it. – mbpro Aug 14 '13 at 12:19
  • 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. – Baby Groot Aug 14 '13 at 12:20
  • 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? – mbpro Aug 14 '13 at 12:54
2

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

stevekohls
  • 2,214
  • 23
  • 29
1

It seems it was memory issue. Although I am using ARC still I need to manage memory allocation by setting variables to nil.

Baby Groot
  • 4,637
  • 39
  • 52
  • 71
1

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.

olivaresF
  • 1,369
  • 2
  • 14
  • 28
1

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.

MartinMoizard
  • 6,600
  • 12
  • 45
  • 75
1

What fixes for me after Product -> Clean Build Folder is to go to Target -> General -> Main Interface

  • deselect Main
  • select Main again

Here Main is your main storyboard name

onmyway133
  • 45,645
  • 31
  • 257
  • 263
  • Can't upvote this enough...this did it for me (the deselecting / selecting part especially; clean project by itself was not enough). – Florin Odagiu Sep 09 '19 at 14:06