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...

this is what I have tried and hasn't seemed to work:

* restart mac
* restart Xcode
* restart simulator
* delete an app from the simulator
* the clean project then build then run
* change storyboard name (i changed it from ViewController to
ViewController1 and as you see I still get the error
* made sure all the code with ViewController1 in it is spelled right
and case sensitive
* made sure that storyboards are added to copy bundle in build phases
* deleted it from build phases and added it back
* made sure the storyboards weren't localized and vice versa
* made sure the project was added to the storyboard target in file
inspector
* I tried disabling and enabling auto-layout both didn't work

**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** 

```
**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 </Users/Deondrae/Library/Application Support/iPhone Simulator/6.1/Applications/A350F56C-CC1C-462A-8D7C-63F2CB037EBC/Project52.app> (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)** 

```

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 ?

```
#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;
}

```

**UPDATE**: this is what i have now in my appdelegate.m (After trying suggestions) but i still get the error: 

```
- (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;
}

```

**UPDATE 2:** i still get the error ('NSInvalidArgumentException', reason: 'Could not find a storyboard named 'ViewController1')

* My storyboard file name is storyboard.storyboard
* I only have one view controller within that storyboard.
* the view controller within has a custom class of ViewController1

this is what I have in the appdelegate.h

```
#import <UIKit/UIKit.h>

@class ViewController1;

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (nonatomic) UIViewController *viewController;
@property (nonatomic) UINavigationController *navigationController;
@property (nonatomic) UIStoryboard* storyboard;
@property (strong, nonatomic) UIWindow *window;

@end

```

This is what I have in the appdelegate.m

```
#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];
}

```

**UPDATE 3:**

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?

**UPDATE 4:**

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;