我正在iPhone中開發一個應用程序,然後進行一些更改,模擬器工作正常。實施更改後,當我構建應用程序但構建應用程序時,它表示構建成功但iPhone作爲模擬器不可見。任何提示?構建成功但沒有模擬器正在顯示
控制檯輸出
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;
這可能是因爲它不是你所期望的模擬器,而是一個模擬器。 – JustSid
也許你有一個緩慢的mac hohoho。把'NSLog'放到你的'applicationDidFinishLaunching'中。它是否曾經到過那裏? – yeesterbunny
@JustSid謝謝你指出我的錯誤。我已經編輯我的問題 – onkar