3

I am developing an app in iPhone,before making few changes the Simulator was working fine.After implementing the changes,when I have built the app but when I am building it,it says build succeeded but the iPhone as Simulator is not visible. Any hints ?

Console Output

2012-11-08 12:06:08.089 MyApp[743:f803] IT IS  COMING HERE
2012-11-08 12:06:08.093 MyApp[743:f803] IT IS  COMING HERE 1
2012-11-08 12:06:08.094 MyApp[743:f803] IT IS  COMING HERE 2
(lldb) 


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    NSLog(@"IT IS  COMING HERE");
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    NSLog(@"IT IS  COMING HERE 1");
    // Override point for customization after application launch.
    self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
    NSLog(@"IT IS  COMING HERE 2");
    self.window.rootViewController = self.viewController;
    [self.window makeKeyAndVisible];
    NSLog(@"IT IS  GOING FROM HERE");
    return YES;
onkar
  • 109
  • 1
  • 2
  • 11

2 Answers2

4

I had the same issue before, I solved it by the following methods:

Just quit the simulator and run the project again. If it is not working then quit the xcode along with simulator and run the project again, it'll surely solve the issue.

Midhun MP
  • 103,496
  • 31
  • 153
  • 200
2

Sometimes the simulator does not launch the app or gets a complete black screen even though x-code shows that build has succeeded. The best thing to do, as everyone pointed out, quit X-code and reset the simulator. Relaunch the app, and things should work fine.

footyapps27
  • 3,982
  • 2
  • 25
  • 42