akofman / cordova-plugin-add-swift-support

:hammer: Swiftify your Cordova app !
MIT License
116 stars 107 forks source link

Swift 4 support #55

Closed l3ender closed 5 years ago

l3ender commented 5 years ago

Is there plans for support for Swift 4? Are you open to PRs, and if so, could an overview of what needs to be done for support?

Thanks!

RobbertWolfs commented 5 years ago

swift 5 since yesterday 🤦‍♂️

timbru31 commented 5 years ago

Setting <preference name="UseSwiftLanguageVersion" value="5" /> works fine for me and Xcode sets the correct compiler level:

image

cleversolutions commented 5 years ago

As documented in the README try adding this to your plugin.xml

timbru31 commented 5 years ago

Sidenote: my PR #57 makes Swift 4 the new default. :)