[英](iOS) App runs fine on iPhone but immediately crashes in simulator, no diagnostic messages shown
My iOS app runs just fine on an actual device (even after hours of testing by multiple testers); 我的iOS应用程序可以在实际设备上正常运行(即使经过多名测试人员进行数小时的测试); however when attempting to run it on the simulator, it crashes immediately (doesn't even seem to get as far as
main()
). 但是,当尝试在模拟器上运行它时,它立即崩溃(甚至还没有达到
main()
)。 It just shows my app's launch screen then immediately dies. 它只是显示我的应用程序的启动屏幕,然后立即消失。 Absolutely no information whatsoever is printed or logged (I checked the debug window, the Console app, etc.).
绝对不会打印或记录任何信息(我检查了调试窗口,控制台应用程序等)。 Does anyone have any ideas/suggestions as to how I would go about getting to the bottom of this?
关于我如何深入了解这一点,是否有人有任何想法/建议? Thanks!
谢谢!
Try to Reset the iOS Simulator if not working Try enabling NSZombieEnabled 如果不起作用,请尝试重置iOS模拟器。尝试启用NSZombieEnabled
You can do by clicking on 'Product' in the Xcode top bar. 您可以通过点击Xcode顶部栏中的“产品”来进行操作。 Press the option key and click on run.
按选项键,然后单击运行。 Under environment variables click + Added NSZombieEnabled and set its value to YES
在环境变量下,单击+添加NSZombieEnabled并将其值设置为YES
You may find some error.. 您可能会发现一些错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.