Ionic cordova run ios gives "Error: Error code 65 for command"

Hi everyone! :slight_smile:

I’m trying to run ionic emulated on my Mac. But when I do it builds until the following error emerges:


Check dependencies
The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor.

** BUILD FAILED **


The following build commands failed:
	Check dependencies
(1 failure)
Error: Error code 65 for command:```



Running "ionic info" gives:




```cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.1
    ionic (Ionic CLI) : 3.19.1

global packages:

    cordova (Cordova CLI) : 7.0.1 

local packages:

    @ionic/app-scripts : 3.1.6
    Cordova Platforms  : ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2

System:

    ios-deploy : 1.9.1 
    ios-sim    : 6.0.0 
    Node       : v8.9.2
    npm        : 5.6.0 
    OS         : macOS High Sierra
    Xcode      : Xcode 9.2 Build version 9C40b```


 From what I can tell it might have something to do with swift, but if I try to uninstall swift it tells me that swift needs to be installed for QR-scanning to work.

```ionic cordova plugin rm swift-support
> cordova plugin remove swift-support --save
Error: The plugin 'cordova-plugin-swift-support' is required by (cordova-plugin-qrscanner), skipping uninstallation. (try --force if trying to update)```

Does anyone now how to fix this?

I have the same, any solution?