title: Could not load NIB in bundle: 'NSBundle ERROR
body: <p>I have tried everything I have read on google, and StackOverflow but none of the suggestions seem to work. I have been stuck on this for 2 days trying to fix it but I hope you guys can help me out and suggest something I haven't tried...</p>
  
  <p>this is what I have tried and hasn't seemed to work:</p>
  
  <ul>
  <li>restart mac</li>
  <li>restart Xcode</li>
  <li>restart simulator</li>
  <li>delete an app from the simulator</li>
  <li>the clean project then build then run</li>
  <li>change storyboard name (i changed it from ViewController to
  ViewController1 and as you see I still get the error</li>
  <li>made sure all the code with ViewController1 in it is spelled right
  and case sensitive</li>
  <li>made sure that storyboards are added to copy bundle in build phases</li>
  <li>deleted it from build phases and added it back</li>
  <li>made sure the storyboards weren't localized and vice versa</li>
  <li>made sure the project was added to the storyboard target in file
  inspector</li>
  <li>I tried disabling and enabling auto-layout both didn't work</li>
  </ul>
  
  <p><strong>NONE of these seemed to work I still get this error below and it won't load my app on the simulator it just stops at the black loading screen</strong> </p>
  
  <pre><code>**2013-08-27 12:07:15.057 Project52[647:11303] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle &lt;/Users/Deondrae/Library/Application Support/iPhone Simulator/6.1/Applications/A350F56C-CC1C-462A-8D7C-63F2CB037EBC/Project52.app&gt; (loaded)' with name 'ViewController1''
  *** First throw call stack:
  (0x159b012 0x12a8e7e 0x159adeb 0x408ef9 0x2cd7e7 0x2cddc8 0x2cdff8 0x2ce232 0x21d3d5 0x21d76f 0x21d905 0x226917 0x2bb5 0x1ea157 0x1ea747 0x1eb94b 0x1fccb5 0x1fdbeb 0x1ef698 0x25fddf9 0x25fdad0 0x1510bf5 0x1510962 0x1541bb6 0x1540f44 0x1540e1b 0x1eb17a 0x1ecffc 0x56ad 0x28d5)
  libc++abi.dylib: terminate called throwing an exception
  (lldb)** 
  </code></pre>
  
  <p>I suspect that this error is being caused because of this code below... the code looks to load an xib but this is xcode 4.6 so we are using storyboards... what can i change the code to try make it work/load storyboards instead of the dated xib ?</p>
  
  <pre><code>#import "AppDelegate.h"
  #import "ViewController.h"
  
  @implementation AppDelegate
  
  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
      // Override point for customization after application launch.
      self.viewController = [[ViewController1 alloc] initWithNibName:@"ViewController1" bundle:nil];
      self.window.rootViewController = self.viewController;
      [self.window makeKeyAndVisible];
      return YES;
  }
  </code></pre>
  
  <p><strong>UPDATE</strong>: this is what i have now in my appdelegate.m (After trying suggestions) but i still get the error: </p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
  
      self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
      // Override point for customization after application launch.
      self.viewController = [[UIStoryboard storyboardWithName:@"ViewController1"  bundle:nil] instantiateViewControllerWithIdentifier:@"ViewController1"];
      self.window.rootViewController = self.viewController;
      [self.window makeKeyAndVisible];
      return YES;
  }
  </code></pre>
  
  <p><strong>UPDATE 2:</strong> i still get the error ('NSInvalidArgumentException', reason: 'Could not find a storyboard named 'ViewController1')</p>
  
  <ul>
  <li>My storyboard file name is storyboard.storyboard</li>
  <li>I only have one view controller within that storyboard.</li>
  <li>the view controller within has a custom class of ViewController1</li>
  </ul>
  
  <p>this is what I have in the appdelegate.h</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @class ViewController1;
  
  @interface AppDelegate : UIResponder &lt;UIApplicationDelegate&gt;
  
  @property (nonatomic) UIViewController *viewController;
  @property (nonatomic) UINavigationController *navigationController;
  @property (nonatomic) UIStoryboard* storyboard;
  @property (strong, nonatomic) UIWindow *window;
  
  @end
  </code></pre>
  
  <p>This is what I have in the appdelegate.m</p>
  
  <pre><code>#import "AppDelegate.h"
  #import "ViewController.h"
  
  @implementation AppDelegate
  
  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
  
      self.storyboard = [UIStoryboard storyboardWithName:@"storyboard" bundle:nil];
      self.viewController = [self.storyboard instantiateViewControllerWithIdentifier:@"ViewController1"];
      self.navigationController  = [[UINavigationController alloc] initWithRootViewController:self.viewController];
      self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
      [self.window setRootViewController:self.viewController];
      [self.window addSubview:self.navigationController.view];
      [self.window makeKeyAndVisible];
  }
  </code></pre>
  
  <p><strong>UPDATE 3:</strong></p>
  
  <p>using @calinchitu code from the comments within the appdelegate.h and .m file seemed to have got rid of the error... however now I get a warning specifically after I close bracket on the code he provided on the .m file which says "Warning: Control reaches end of non-void function" only way to skip past it is with a breakpoint enabled but the warning still shows... how do I get rid of this?</p>
  
  <p><strong>UPDATE 4:</strong></p>
  
  <p>Add return YES; at the end of the code that @calin Chitu provided in the comments and it should get rid of the warning. HIS ANSWER IS CORRECT AND WORKED FINE BUT I DONT HAVE ENOUGH POINTS TO MARK THE ANSWER SO ANYONE ELSE WHO COMES ACROSS THIS ERROR USE HIS CODE / SUGGESTION IT WORKS - DONT FORGET THE return YES;</p>