I have seen a lot of answers for this question:
error: failed to attach to process ID
as switch to GDB
switch to GDB
Apple likes to move forward. So setting gdb as the debugger for all new projects is not an option.
Sometimes, you have to reset the iOS Simulator to clean up the debugger.