简体   繁体   English

iOS App在手机上崩溃,在iPhone模拟器中完美运行

[英]iOS App crashes on phone, works flawlessly in iPhone simulator

What is the best way to debug that? 调试的最佳方法是什么? It just "crashes" on the phone, no message, nothing. 它只是在电话中“崩溃”,没有消息,什么也没有。 Simulator is doing just fine. 模拟器做得很好。 Happens on only one of the UIViewController's, not sure why... 仅发生在UIViewController的其中一个上,不确定为什么...

I suggest you to add NSZombieEnabled and set it to YES in your enviornment, you can set this in Project->Edit active executable->(go to Agruments tab) and add to Variables to be set in enviornment, so you can see(if you are lucky) where is the problem. 我建议您添加NSZombieEnabled并将其在您的环境中设置为YES,您可以在“项目”->“编辑活动的可执行文件”->(转到“ Agruments”选项卡)中进行设置,并添加到要在环境中设置的变量,这样您就可以看到(如果您很幸运)问题出在哪里。 Remember to remove it before the upload of your app on the store. 在将应用上传到商店之前,请记住将其删除。

You could also download this app from the store. 您也可以从商店下载应用。

Attach the debugger when running on the device, see if it is produced that case. 在设备上运行时,请连接调试器,看看是否是这种情况。 Otherwise, check the device logs in the organizer. 否则,请检查设备登录到管理器中。 Logs are left on the device when the app crashes. 当应用崩溃时,日志会留在设备上。 They can be symbolicated to find out this information. 可以用符号表示以查找此信息。

Have you gone out of your way to completely clean out prior installations of your app when installing the new version? 在安装新版本时,您是否已经竭尽全力彻底清除了以前安装的应用程序? Inconsistencies between remnants of the old version installed on the real device and the new install can lead to this situation. 实际设备上安装的旧版本和新安装的残余之间的不一致会导致这种情况。

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

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