[英]How to fix iOS Simulator issue?
When I run iOS simulator it only runs in (3,5 - inches) and when I change it to (4-inches), this is the error that pops up in the "debug navigator" under "thread 1": 当我运行iOS模拟器时,它仅以(3.5-英寸)运行,而当我将其更改为(4英寸)时,这是在“线程1”下的“调试导航器”中弹出的错误:
#import "AppDelegate.h"
int main(int argc, char * argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
how do I fix/correct this issue, so that my app can work on both 3.5 inches and 4 inches iPhone Retina screens & in the Simulator? 如何解决/纠正此问题,以便我的应用程序既可以在3.5英寸和4英寸的iPhone Retina屏幕上使用,又可以在模拟器中使用?
Thank you. 谢谢。
You should insert a breakpoint
for all exceptions
that will occure. 您应该为将要发生的所有exceptions
插入一个breakpoint
。 Thisfore go to the Breakpoint Navigator
因此,请转到Breakpoint Navigator
and add at the bottom of xCode
an Exception Breakpoint...
并在xCode
的底部添加一个Exception Breakpoint...
The Breakpoint
should be set like this Breakpoint
应该这样设置
No you should be able to get a error message inside the log
and also see whats the problem. 不,您应该能够在log
内获取错误消息,并查看问题出在哪里。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.