简体   繁体   English

黑色黑屏,iPhone 4上的任何应用程序崩溃

[英]Black blank screen and crash on iPhone 4 for any app

This has happened with Xcode Beta (7.0) and Xcode (6.4). Xcode Beta(7.0)和Xcode(6.4)发生了这种情况。

I'm trying to debug my app with my iPhone 4 (iOS 7.1.2) and I set my Deployment Target under iOS 7.0. 我正在尝试使用iPhone 4(iOS 7.1.2)调试应用,并将部署目标设置为iOS 7.0。 When I run my app, I can't see the LaunchScreen but instead it's a black blank screen and then it crashes. 当我运行我的应用程序时,看不到LaunchScreen,而是一个黑屏,然后崩溃了。

I'm not giving any piece of code, because when I create a new default project , setting the Deployment Target right, I get the same crash . 我没有提供任何代码,因为当我创建一个新的默认项目并正确设置Deployment Target时, 我会遇到相同的崩溃

2015-09-13 16:06:07.026 GafasApp2[243:60b] -[MasterViewController topViewController]: unrecognized selector sent to instance 0x14d83420 2015-09-13 16:06:07.033 GafasApp2[243:60b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MasterViewController topViewController]: unrecognized selector sent to instance 0x14d83420' * First throw call stack: (0x30a57f83 0x3b208ccf 0x30a5b917 0x30a5a203 0x309a9768 0x85cc3 0x332e4587 0x332e3edb 0x332de56b 0x3327a6e9 0x33279851 0x332ddca9 0x35892aed 0x358926d7 0x30a22a67 0x30a22a03 0x30a211d7 0x3098bebf 0x3098bca3 0x332dced1 0x332d814d 0x86fbd 0x3b715ab7) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb) 2015-09-13 16:06:07.026 GafasApp2 [243:60b]-[MasterViewController topViewController]:无法识别的选择器已发送到实例0x14d83420 2015-09-13 16:06:07.033 GafasApp2 [243:60b] *由于未捕获而终止了应用程序异常'NSInvalidArgumentException',原因是: ' - [MasterViewController topViewController]:无法识别的选择发送到实例0x14d83420' *第一掷调用堆栈:(0x30a57f83 0x3b208ccf 0x30a5b917 0x30a5a203 0x309a9768 0x85cc3 0x332e4587 0x332e3edb 0x332de56b 0x3327a6e9 0x33279851 0x332ddca9 0x35892aed 0x358926d7 0x30a22a67 0x30a22a03 0x30a211d7 0x3098bebf 0x3098bca3 0x332dced1 0x332d814d 0x86fbd 0x3b715ab7)libc ++ abi.dylib:以类型为NSException(lldb)的未捕获异常终止

I've been always developing with iPad air 2 but now I need my iPhone 4 to test some things, but I can't use it as I mentioned. 我一直在使用iPad air 2进行开发,但是现在我需要我的iPhone 4来测试某些东西,但是我不能像我提到的那样使用它。

Do you have any clue? 你有什么线索吗?

Thank you very much. 非常感谢你。

First, try running the app in a different device and one of the simulators. 首先,尝试在其他设备和其中一个模拟器中运行该应用程序。 This will let you know if the problem is one specific device. 这将让您知道问题是否出在一个特定的设备上。

Second, the main problem appears to be that your are calling a method that does not exist. 其次,主要问题似乎是您正在调用的方法不存在。 Add an exception brreakpoint . 添加异常brreakpoint This should break where the unrecognized selector is called. 这应该会中断无法识别的选择器的调用位置。

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

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