Reputation: 58067
iPad simulator won't run my app! It loads and animates in and then crashes halfway through the loading animation.
Xcode reports: Debugging Terminated. Why?
I just had this on my iPod touch (8GB) and I rebooted them both.
EDIT:
This code in the delegate seems to be causing an issue:
NSLog(@"Device: %@", [[UIDevice currentDevice] userInterfaceIdiom]);
Any ideas why that may be?
Upvotes: 0
Views: 327
Reputation: 1922
[[UIDevice currentDevice] userInterfaceIdiom]
does not return an object, which is required by %@
format specifier.
Try NSLog(@"Device: %d", [[UIDevice currentDevice] userInterfaceIdiom]);
Upvotes: 1