Link address: http://blog.sina.com.cn/s/blog_8aecea5f0101atpv.html
Error: failed to attach to process ID 0
Answer:
Open only xcode without opening project-> go to window-> Organizer-> [projectname] and delete it completely-> quit xcode-> open iPhone simulator and reset settings-> quit iPhone Simulator -> Reboot Mac-> reopen xcode and run application
I 've met the same problem
1. You can delete the app directy under ~ /Library/Application Support/iPhone simulator/6.0/applications and ~ /Library/developer/xcode/deriveddata
2. Then you can start xcode; In the menubar you can find project-> clean
I experienced the same problem, and after a while I found out that it was due to the fact that my xcode project has ded a folder reference to a folder named resources.
It seems that xcode doesn' t like that name.
Just removing the folder reference or renaming the folder solved the issue.
Go to the product menu and find the edit scheme menu there.
While in edit scheme window, select the "run" option on the left hand side of the screen and then on the right hand side, change the debugger from lldb to GDB.
20130206
It is found that running on a real machine is successful. If it is suspected that it is a simulator problem, you may encounter a problem when you exit and shut down the simulator.
20130216
This is okay on my simulator. Thanks to the Internet and thanks to the gods for sharing.
Go to iOS simulator tool bar and Click Reset content and settings...
Http://stackoverflow.com/questions/12741188/error-failed-to-attach-to-process-id-0
The end!
2013-03-05