I'm not sure you are facing the same error as I did - in your case it seems `--buildFlag` is not recognized. I use cordova 8, cordova-ios 4.5.5
I shiver when I am asked to relive nightmares. Now that this is solved, I'm battling with WKWebView and self signed certs and the fact that Android builds have issues (when WKWebView is an iOS thing). Jokes apart - back to your question: Here is what I do now: 1. To build from CLI, I use `ionic cordova build ios --release --buildConfig="./build-auto.json"` ([my build-auto.json](https://github.com/pliablepixels/zmNinja/blob/master/build-auto.json)) 2. When I build using Xcode, I make sure "Legacy build system" is on as per the posts above. Hope this helps. [ Full content available at: https://github.com/apache/cordova-ios/issues/412 ] This message was relayed via gitbox.apache.org for [email protected]
