重新启动应用程序时获取异常SIGKILL [英] Getting Exception SIGKILL when relaunching app

查看:157
本文介绍了重新启动应用程序时获取异常SIGKILL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iPhone模拟器中构建并运行一个项目。我按住主页按钮将其发送到背景。然后我双击主页按钮在后台查找我的应用程序并点击它。它变得活跃,应用程序继续运行。无论我多少次重复,我都没有问题。然后我通过点击应用程序图标上的小红色减号来杀死进程。但如果我再次点击应用程序图标重新启动它,我得到SIGKILL错误和应用程序崩溃。这可能是什么原因?这可能是由我的XCode首选项引起的?

解决方案

这不是一个崩溃:只是XCode有延迟的反应你点击小红色减号。当您以这种方式终止应用程序时,操作系统会向您的进程发送SIGKILL信号,但XCode的调试器在重新启动应用程序之前不会看到SIGKILL。



您可以通过在调试器中点击Continue按钮来恢复这个崩溃。


I build and run a project in iPhone simulator. I send it to background by pressing the home button. Then I double press the home button to find my app in the background and tap it. It becomes active and the app continues to run. Here I got no problem no matter how many times I repeat this. Then I kill the process by tapping the little red minus sign on the app's icon. But if I again tap the app icon to relaunch it I get SIGKILL error and app crashes. What could be the reason for this? Could it be caused by my XCode preferences?

解决方案

This isn't really a crash: It's just XCode having a delayed reaction to your tapping the little red minus sign. When you terminate your app this way, the operating system sends a SIGKILL signal to your process – but XCode's debugger doesn't "see" the SIGKILL until after you relaunch the app.

You can "recover" from this "crash" by hitting the Continue button in the debugger, incidentally.

这篇关于重新启动应用程序时获取异常SIGKILL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆