Remove storyboard and ARC from xcode 5 project

While creating a project in xCode 5, it never asks for enabling ARC and storyboards. It already enables ARC and storyboards.In iOS 5 storyboard were not there, so it will get crashed in iOS 5. With some other reasons also you may want to remove ARC and storyboards from your project. Its quite simple to remove ARC and storyboards with these few steps:-

Remove Storyboards

1. Remove “Main.storyboard” file from the project.

Screen Shot 2013-11-12 at 3.51.44 PM


2. Add following code in the AppDelegate.m file.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 self.window = [[UIWindow alloc] initWithFrame:[[UIScreen                  mainScreen]bounds]];
ViewController *viewController = [[ViewController alloc] init];

UINavigationController *navigationController =[[UINavigationController alloc]initWithRootViewController:viewController];

self.window.rootViewController = navigationController;

[self.window makeKeyAndVisible];

return YES;


Remove ARC

Go to Build Setting -> Objective-C Automatic Reference Counting -> NO

Screen Shot 2013-11-12 at 4.12.19 PM

The following two tabs change content below.

Submit a Comment

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Current month ye@r day *