iOS模拟器SigKill [英] IOS Simulator SigKill

查看:159
本文介绍了iOS模拟器SigKill的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ios模拟器中试验我的应用程序时,发现从多任务栏中删除它并重新运行它时,它会产生SIGKILL信号. (我可以先停止该应用程序,再运行另一个应用程序,然后从多任务栏中删除第一个应用程序,然后重新运行它.)

I was experimenting with my app in the ios simulator when I found that it produces the SIGKILL signal when I delete it from the multitasking bar and then rerun it. (I do this by stopping the app, running another app, then deleting the first app from the multitasking bar and rerunning it.)

我认为这可能与我最新的实验有关,添加了Core Data,但是在尝试简化条件之后,似乎我测试的每个应用程序都在发生这种情况.

I thought this might have something do do with my latest experiment, adding Core Data, but after trying to simplify the conditions, it looks like it is happening withe every app I test it with.

代码在调试器中在我的注释所确定的位置停止:

The code stops in the debugger at the point identified by my comment:

#import <UIKit/UIKit.h>

int main(int argc, char *argv[])
{
    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    int retVal = UIApplicationMain(argc, argv, nil, nil);    //<- STOPS with SIGKILL here
    [pool release];
    return retVal;
}

我还发现它似乎停顿了,好像是一个断点.我单击继续按钮,它会恢复运行,好像什么都没有发生.我在标记的线处放置了一个真正的断点,并在那儿停了下来.单击继续可使程序恢复运行,而不会出现SIGKILL信号.

I also found that it appears to be halting as if it is a break point. I click the continue button, and it resumes as if nothing happened. I put a real break point at the marked line and it halts there. Clicking continue lets the program resume without the SIGKILL signal occurring.

我尝试使用Core Data的基本模板程序进行了此操作,但没有自己修改,并且出现了信号.我在不使用Core Data的其他程序中进行了尝试,并且出现了信号.我已经在程序已加载但尚未调试的情况下尝试了此程序,并且即使在调试时出现问题,程序也可以正常运行.

I tried this with a basic template program for Core Data, with no modifications of my own, and the signal occurs. I tried it with other programs that do not use Core Data, and the signal occurs. I tried it when the program is already loaded but not being debugged, and the program behaves properly, even though the problem occurs when it is being debugged.

当然,SIGKILL不会提供任何帮助的错误消息.

Of course, SIGKILL does not give any error message that help.

有人知道发生了什么吗?看来这不是一个真正的问题,但我想确保自己理解.

Does anyone know what is happening? It doesn't seem like a real problem, but I want to make sure I understand it.

我正在使用XCODE4.

I am using XCODE4.

推荐答案

从多任务栏中删除该程序将使其无法运行.右键单击扩展坞中的应用程序图标,相当于在OS X中获得强制退出"选项.

Deleting the program from the multitasking bar stops it from running. It's the equivalent of the "Force Quit" option you get in OS X when right-clicking an application icon in the dock.

在iOS级别上,显然是通过向应用程序发送"kill"信号(称为SIGKILL)来完成的.

At the iOS level, this is apparently done by sending the "kill" signal, known as SIGKILL, to the application.

这篇关于iOS模拟器SigKill的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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