When an iOS app is stopped/restarted from Xcode, it often jumps to the
main.m file to show that the app has received a
SIGKILL signal. It’s a very distractive behavior when you’re working on something and want to have a quick test.
How to fix: edit your
~/.gdbinit file so that it has these lines: