简体   繁体   English

iPhone / iOS App运行正常,但是如果我通过从正在运行的程序中将其删除强制退出,则下次启动时将崩溃

[英]iPhone/iOS App runs fine, but if I force quit by deleting it from the running programs crashes on next start

Ok, I'm confused.. 好吧,我很困惑。

I have an app that if I launch and use runs fine.. However if I click on the home button pausing the app, and then go into the list of running apps by double clicking the home button, and then delete the app instance in that list, effectively killing/ending that app run, and go back and click on the icon to launch the app fresh, the app simply hangs with a blank black screen... every time I try to start the app after that first time I get this problem. 我有一个可以启动并使用的应用程序可以正常运行。.但是,如果单击“主页”按钮暂停该应用程序,然后双击“主页”按钮进入正在运行的应用程序列表,然后删除该应用程序实例列表,有效地杀死/终止该应用程序的运行,然后返回并单击该图标以重新启动该应用程序,该应用程序只是挂起一个黑屏……每次在我第一次尝试启动该应用程序后,这个问题。

Is there some event I need to handle in my app, to make sure it cleans itself up properly for relaunch? 我需要在我的应用程序中处理一些事件,以确保它可以正确清理以重新启动吗?

I am admittedly confused and would appreciate any help. 我很困惑,不胜感激。

I had the same weird problem, then i have realized that this only happens if you run the application through the XCODE (Debug Mode). 我有一个奇怪的问题,然后我意识到只有在通过XCODE(调试模式)运行应用程序时才会发生这种情况。 The application locks because the debugger/xcode receives the SIGNKILL and locks the application so you can inspect the code. 应用程序被锁定,因为调试器/ xcode收到了SIGNKILL并锁定了应用程序,因此您可以检查代码。

If you run the application directly from the device the application gets killed and does not remain locked on the screen :) 如果您直接从设备运行该应用程序,该应用程序将被终止,并且不会在屏幕上保持锁定:)

Even one year later, i had the same problem, so hope that helps someone that has the same problem. 即使一年后,我也遇到了同样的问题,所以希望能对遇到同样问题的人有所帮助。

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

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