iPhone simulator will not run anymore

Hi, after upgrading Xcode v9 I can't run any iPhone simulator. I get following error message;


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.

maxFiles: 10240, openFiles: 9571, enforcedFilesBuffer: 1740


I ran the following two commands from terminal;


$sudo lauchctl limit maxproc 2000 2500

$sudo launchctl limit maxfiles 2000 unlimited


But I am getting same error? Any help would be appreciated?


My System Setup;

XCode - Version 9.0.1 (9A1004)

OS - MAC Sierra Version 10.12.6

Processor Name: 6-Core Intel Xeon E5

Processor Speed: 3.5 GHz

Number of Processors: 1

Total Number of Cores: 6

L2 Cache (per Core): 256 KB

L3 Cache: 12 MB

Memory: 32 GB


Thanks!

From the Xcode 9 Release Notes:


Known Issues

Running several simulators simultaneously may exceed the maximum number of processes or maximum open file limits. When this happens starting a new process, opening a new simulated device, or opening a file results in an error. Closing one or more simulated devices or closing open programs may resolve the issue.macOS 10.13 and later automatically scales these limits based on available system memory. The limits are fixed values on earlier versions of macOS. The limits can be increased by using

launchctl
. For more information, choose Help > Simulator Help and navigate to Troubleshoot Simulator > Insufficient resources. (31179087)
iPhone simulator will not run anymore
 
 
Q