Xcode to complete the application

Does anyone know what Xcode sends out to kill a running program? I need a handler to do some cleanup before the programs are killed. I already tried SIGINT and SIGTERM, but it does not work.

+3
source share
2 answers

He sends the SIGKILL Sinal. To make sure that you can open any application in debug mode and check the console when you stop the task.

However, if it kills -9, you cannot capture the signal.

? , , XCode. Xcode, Terminal, .

0

.

AppDelegate.

0

All Articles