In xcode 4.2, sometimes when you\'re going to run your ios proj on simulator, the status windows says \"Attaching to myapp\", and just gets stuck there... until you cancel. Now,
I have noted in Lion that when the iOS sim locks up or hangs the app,
that if I go to a shell, and do ps -ef |grep SDK
, I will
see many, many processes running associated with the simulator.
I tried to kill off these processes but they rapidly respawn and the only solution then is to reboot. Also, in the ps output, you will also see instances of your app running as well.
So the Simulator issue is caused by previously running processes that appear to block the correct running of the latest one. I guess Apple will have a fix for this eventually, as it is quite onerous.