I got the following error message when trying to boot my fourth simulator:
Unable to boot device due to insufficient system resources.
Please see Simulator Help for information on adjusting system settings to allow more simulated devices to boot at once.
maxUserProcs: 709, runningUserProcs: 569, enforcedProcBuffer: 144
I don't know what Simulator Help they are referring to, because I'm not finding anything about this. Google also doesn't help me. It's pretty clear from the error message that if runningUserProcs
+ enforcedProcBuffer
is greater than maxUserProcs
, you cannot boot another simulator. What isn't clear is how to change the maxUserProcs
setting.
Does anyone know how I can change the maxUserProcs
?
sudo launchctl limit maxproc 2000 2500
Source: https://help.apple.com/simulator/mac/9.0/index.html#/dev8a5f2aa4e
This pointer helped me, though, when I run this particular command given above
sudo launchctl limit maxfiles 2000 unlimited
it sets my setting as maxfiles 2000 10240
So I run again this bit different one
sudo launchctl limit maxfiles 65536 200000
and it now the setting got set as maxfiles 65536 200000
And doing this later one only helped me to re run the simulator again successfully. I have a Mojave 10.14.5.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With