I have stopped all simulator processes but still getting below error.
Restore the connection to \"iPad 2\" and run \"APPNAME\" again, or if \"APPNAME\" is still runn
This happens when you have 2 projects open in XCode you want to debug at same time.
To reproduce the problem:
To avoid the problem: