Solution: Add “-- --buildFlag=”-UseModernBuildSystem=0" to end of command. So, ionic cordova run ios -l -- --buildFlag="-UseModernBuildSystem=0"
Alternatively, you can add a “build.json” file to root of project instead with following code below and cordova will pickup build flag from there: { "ios": { "debug": { "buildFlag": [ "-UseModernBuildSystem=0" ] }, "release": { "buildFlag": [ "-UseModernBuildSystem=0" ] } } }
Hum it’s working now with -- --buildFlag="-UseModernBuildSystem=0"
And I have an other problem with device emulator target, I’ll dig in the forum to see if somebody had the same issue or I’ll create a new post.