简体   繁体   English

(iOS)App在iPhone上运行正常,但立即在模拟器中崩溃,未显示任何诊断消息

[英](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.

相关问题 即使在模拟器上运行,iOS应用程序也会在iPhone上崩溃 - iOS app crashes on an iPhone even though it runs on simulator 应用在iPhone6上启动时崩溃,在iPhone4s和iPad Retina和iPhone6模拟器上运行良好 - App crashes at launch on iPhone6, runs fine on iPhone4s and iPad Retina and iPhone6 simulator 使用UITableView的应用程序在iPad模拟器上运行,但在iPhone模拟器上崩溃 - App with UITableView runs on iPad simulator but crashes on the iPhone simulator iPhone / iOS App运行正常,但是如果我通过从正在运行的程序中将其删除强制退出,则下次启动时将崩溃 - iPhone/iOS App runs fine, but if I force quit by deleting it from the running programs crashes on next start iPhone应用程序由于内存不足而崩溃,但在模拟器中可以正常使用 - iPhone App Crashes due to Low Memory but works fine in simulator 应用程序在iPhone / iPod上运行良好,但在iPad(甚至模拟器)上崩溃 - App works fine on iPhone/ iPod but crashes on iPad (even simulator) iPhone应用程序由于内存不足而崩溃,但在模拟器中工作正常 - iphone app crashes due to Low Memory but works fine in simulator 应用程序在iPhone上崩溃,但在模拟器中却没有崩溃 - App Crashes on iPhone but not in Simulator 应用程序在iPhone上崩溃但在模拟器上没有崩溃 - App crashes on iPhone but not on simulator 应用程序在模拟器上崩溃,但在iPod 3.1.3上运行良好。 当应用程序在模拟器中运行时,超级类的init方法没有被击中(甚至在调试时) - App crashes on simulator but runs fine on iPod 3.1.3. The Super class' init method is not being hit (even at debug) when app runs in simulator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM