How to set Swift Language Version?

Hi,

When I build ios, it will shown this error.

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.

So I must be set the version to Swift 3.3 from Build Settings manually, it’s work.

Could I set it in the mobile-config.js ?

Meteor@1.7.0.5
Swift 9.4.1

My cordova plugins:

  • cordova-plugin-app-version@0.1.9
  • cordova-plugin-call-number@1.0.1
  • cordova-plugin-camera@4.0.3
  • cordova-plugin-device@2.0.2
  • cordova-plugin-dialogs@2.0.1
  • cordova-plugin-facebook4@2.4.0
  • cordova-plugin-file@6.0.1
  • cordova-plugin-file-transfer@1.7.1
  • cordova-plugin-firebase@2.0.0
  • cordova-plugin-googleplus@5.3.1
  • cordova-plugin-local-notifications@https://github.com/katzer/cordova-plugin-local-notifications.git#a75c0979ceab65b519b53c28047194ce1b82f324
  • cordova-plugin-splashscreen@5.0.2
  • cordova-plugin-statusbar@2.4.2
  • cordova-plugin-whitelist@1.3.3
  • cordova-save-image-gallery@0.0.26

Thank you.

It should be set in XCode.

1 Like