Xcode下创建一个项目,但是运行的时候出现了如下的错误:
1 | clang: error: unable to execute command: posix_spawn failed: Resource temporarily unavailable |
经过查找资料,有个说明是这样的,如下:
you may be running into too-low limits on the number of concurrent processes allowed on the machine. Check:
1 | sysctl kern.maxproc |
You can increase them with e.g.:
1 | sudo sysctl -w kern.maxproc=2500 |
But normally this shouldn’t be necessary if you’re building on 10.7 or higher. If you see this, check if some rogue program spawned hundreds of processes and kill them first.
我按照上面的流程执行了操作:
1 | davidzhang@davidzhang:~/command$ sysctl kern.maxproc |
最后运行我的项目的时候,问题就解决了
查询参考资料:http://code.google.com/p/chromium/wiki/MacBuildInstructions