Lately my builds are failing for iOS.
[INFO] Running app-scripts build: --platform ios --target cordova
[19:02:46] build dev started ...
[19:02:46] clean started ...
[19:02:46] clean finished in less than 1 ms
[19:02:46] copy started ...
[19:02:46] transpile started ...
[19:02:49] transpile finished in 2.21 s
[19:02:49] preprocess started ...
[19:02:49] deeplinks started ...
[19:02:49] deeplinks finished in 111 ms
[19:02:49] preprocess finished in 113 ms
[19:02:49] webpack started ...
[19:02:49] copy finished in 2.95 s
[19:03:00] webpack finished in 11.20 s
[19:03:00] sass started ...
[19:03:02] sass finished in 1.61 s
[19:03:02] postprocess started ...
[19:03:02] removed unused font files
[19:03:02] postprocess finished in 7 ms
[19:03:02] lint started ...
[19:03:02] build dev finished in 15.19 s
> ionic cordova prepare ios
> cordova prepare ios
[19:03:02] lint finished in 720 ms
> cordova build ios
✖ Running command - failed!
[ERROR] An error occurred while running cordova build ios (exit code 1):
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
my environment info:
cli packages: (/Users/ctupe/workspace/autobotx/smartapp/Autoboxt/node_modules)
@ionic/cli-utils : 1.12.0
ionic (Ionic CLI) : 3.12.0
global packages:
cordova (Cordova CLI) : 7.0.1
local packages:
@ionic/app-scripts : 2.0.1
Cordova Platforms : android 6.3.0 browser 4.1.0 ios 4.5.1
Ionic Framework : ionic-angular 3.5.0
System:
Node : v8.1.0
npm : 2.15.12
OS : macOS Sierra
Xcode : Xcode 9.0 Build version 9A235
Misc:
backend : legacy```