ionic 4 ios fails to build due to swift version 3 : <p>After upgrading to xcode 10.2 my ionic for ios project stopped building using below command</p>

<p>ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"</p>

<p>i tried to upgrade cordova-ios@5.0.0 and remove and readd ios platform but no luck.</p>

<pre><code>The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. Supported values are: 4.0, 4.2, 5.0. This setting can be set in the build settings editor.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.2'

** ARCHIVE FAILED **


The following build commands failed:
    Check dependencies
(1 failure)
xcodebuild: Command failed with exit code 65
[ERROR] An error occurred while running subprocess cordova.

        cordova build ios --buildFlag=-UseModernBuildSystem=0 exited with exit code 65.

        Re-running this command with the --verbose flag may provide more information.
</code></pre>
