How Xcode signals that the application is stopping while running in the simulator

In a typical Xcode build and launch sequence, you often use your application, which is still running on the iPhone simulator the last time. Xcode helps you if you want to stop the executable file before installing it and starts a new build.

But how does Xcode signal the iPhone simulator to stop the application?

And could I write a step in my build sequence to do the same, to save the need to reject this dialog?

+6
iphone xcode ios-simulator
source share
2 answers

Applications in the simulator are complete processes. Anything that can kill a process can kill a simulated application. If you are debugging the process, then gdb will catch the signal instead of letting the program die, so you also need to kill gdb. Something like this should do this:

killall gdb-i386-apple-darwin killall $(PRODUCT_NAME) 
+2
source share

well, you can write a script to kill the GBD process your application is running in. I do not know what you had in mind, but it will kill the process!

0
source share

All Articles