简体   繁体   English

iPad模拟器坏了

[英]iPad simulator broken

iPad simulator won't run my app! iPad模拟器无法运行我的应用程序! It loads and animates in and then crashes halfway through the loading animation. 它会加载动画并在其中动画,然后在加载动画的一半时崩溃。

Xcode reports: Debugging Terminated. Xcode报告:调试已终止。 Why? 为什么?

I just had this on my iPod touch (8GB) and I rebooted them both. 我刚在iPod touch(8GB)上安装了此软件,然后重新启动了它们。

EDIT: 编辑:

This code in the delegate seems to be causing an issue: 委托中的以下代码似乎引起了问题:

NSLog(@"Device: %@", [[UIDevice currentDevice] userInterfaceIdiom]);

Any ideas why that may be? 任何想法为什么会这样?

[[UIDevice currentDevice] userInterfaceIdiom] does not return an object, which is required by %@ format specifier. [[UIDevice currentDevice] userInterfaceIdiom]不返回%@格式说明符必需的对象。

Try NSLog(@"Device: %d", [[UIDevice currentDevice] userInterfaceIdiom]); 尝试NSLog(@"Device: %d", [[UIDevice currentDevice] userInterfaceIdiom]);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM