Hello All,
We are facing the below error while generating the iOS mobile App with swift support plugin.
Error: There was an issue generating the app. The Cordova plugin XXX.XXX.XXX is not compatible with the "Swift Language Version" build setting that was defined. Check your plugin configurations and try again.
Swift Support Plugin
{
"plugin": {
"url": "https://github.com/DavidSousa/cordova-plugin-add-swift-support#v1.2"
}
Mobile App Extensibility Configuration
"preferences": {
"ios": [{
"name": "UseSwiftLanguageVersion",
"value": "4"
}]
Device logs are attached for the reference.
Thanks in advance,
Sasikumar Ashokan
hey @Kelash Chand,
Here's an alternative that should work for you: the Swift Support Plugin is outdated. Instead of this plugin (and the related preference within the App's Extensibility Configuration), just try the following preference for your app:
"name": "SwiftVersion",
"value": "5"
If it doesn't work, just add the following line underneath <feature name="TokenizationConventional"><param name="ios-package" value="TokenizationConventional" /></feature> on your plugin:
<preference name="SwiftVersion" value="5" />
BR.