Ios build error: Error: Command failed: xcrun simctl list --json

Hi guys,
I need of support for this error:

> ionic-app-scripts build "--prod" "--release"

[16:35:44]  ionic-app-scripts 1.3.7 
[16:35:44]  build prod started ... 
[16:35:44]  clean started ... 
[16:35:44]  clean finished in 7 ms 
[16:35:44]  copy started ... 
[16:35:44]  ngc started ... 
[16:35:58]  ngc finished in 13.93 s 
[16:35:58]  preprocess started ... 
[16:35:58]  deeplinks started ... 
[16:36:00]  deeplinks finished in 1.63 s 
[16:36:00]  optimization started ... 
[16:36:00]  copy finished in 15.79 s 
[16:36:20]  optimization finished in 20.26 s 
[16:36:20]  preprocess finished in 21.88 s 
[16:36:20]  webpack started ... 
[16:36:44]  webpack finished in 23.61 s 
[16:36:44]  sass started ... 
[16:36:44]  uglifyjs started ... 
[16:36:45]  sass finished in 1.58 s 
[16:36:45]  cleancss started ... 
[16:36:47]  cleancss finished in 2.15 s 
[16:37:38]  uglifyjs finished in 54.76 s 
[16:37:38]  postprocess started ... 
[16:37:38]  postprocess finished in 52 ms 
[16:37:38]  lint started ... 
[16:37:38]  build prod finished in 114.30 s 
[16:37:43]  lint finished in 4.26 s 
Error: Command failed: xcrun simctl list --json
dyld: Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
  Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl
  Reason: image not found

Could you please help me?

Thanks in advance

Luca

I’m getting this error too very recently. I’m able to build against Android platform, but got this error while build against ios platform, any help will be appreciated.

I had the same error.
Start XCode - it likely needs to run some updates and then rerun the ionic cordova build ios command

19 Likes

yeah updating Xcode or Android studio solves this issue