如何摆脱SIGTERM错误

时间:2022-04-29 20:19:59

i have been working on this iphone app in the new xcode4. Practically every time I exit my application in the simulator I get an error on a code line in the main.m Here is my line of code, and then the error on the next line

我一直在使用新的xcode4中的这个iPhone应用程序。实际上每次我在模拟器中退出我的应用程序时,我在main.m中的代码行上出现错误这是我的代码行,然后是下一行的错误

int retVal = UIApplicationMain(argc, argv, nil, nil);

int retVal = UIApplicationMain(argc,argv,nil,nil);

Thread 1:Program received signal: "SIGTERM".

线程1:编程接收信号:“SIGTERM”。

What is happening here? How do I fix this?

这里发生了什么?我该如何解决?

1 个解决方案

#1


6  

SIGTERM is a Unix signal, used to tell your program to quit (TERMinate). When you run your program in Xcode, it runs it within gdb, the debugger program, which automatically catches certain signals. The signal handling behaviour of gdb can be controller but I'm just now myself researching how it's done so can't give you details. In the past, applications on Mac OS or iPhone were sent Apple Quit events, I think, but the SIGTERM signal may be used by the sudden termination feature recently added.

SIGTERM是一个Unix信号,用于告诉程序退出(TER​​Minate)。当您在Xcode中运行程序时,它会在调试器程序gdb中运行它,它会自动捕获某些信号。 gdb的信号处理行为可以是控制器,但我现在正在研究它是如何完成的,所以不能给你详细信息。过去,我认为Mac OS或iPhone上的应用程序是Apple Quit事件,但最近添加的突然终止功能可能会使用SIGTERM信号。

#1


6  

SIGTERM is a Unix signal, used to tell your program to quit (TERMinate). When you run your program in Xcode, it runs it within gdb, the debugger program, which automatically catches certain signals. The signal handling behaviour of gdb can be controller but I'm just now myself researching how it's done so can't give you details. In the past, applications on Mac OS or iPhone were sent Apple Quit events, I think, but the SIGTERM signal may be used by the sudden termination feature recently added.

SIGTERM是一个Unix信号,用于告诉程序退出(TER​​Minate)。当您在Xcode中运行程序时,它会在调试器程序gdb中运行它,它会自动捕获某些信号。 gdb的信号处理行为可以是控制器,但我现在正在研究它是如何完成的,所以不能给你详细信息。过去,我认为Mac OS或iPhone上的应用程序是Apple Quit事件,但最近添加的突然终止功能可能会使用SIGTERM信号。