This is because your installation of OS X is running at a process limit for each user. And this is because Xcode does not always cleanly kill your process at the end of a debugging session.
On my machine, I have 709 processes for each user:
El Smeg:~$ sysctl kern.maxprocperuid kern.maxprocperuid: 709
Looking at the number of zombie processes on my machine:
El Smeg:~$ ps aux | grep \(GridView\) | wc -l 608
So you can see that I am very close to the process limit for each user just because Xcode is leaving zombie processes.
Unfortunately, I do not see a good way to kill them. kill -9 does not work. Rebooting is apparently the only solution besides temporarily raising the limit on each process, which is not really a fix. You cannot kill the parent process, because this start and kill is in any case equivalent to a reboot.
Jason Harris Nov 01 '12 at 18:44 2012-11-01 18:44
source share