55
Views
1
Comments
[Swift Support Plugin] The Cordova plugin is not compatible with the Swift Version
swift-support-plugin
Mobile icon
Forge asset by David Sousa
Application Type
Mobile
Service Studio Version
11.54.33 (Build 62940)
Platform Version
11.20.0 (Build 38508)

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

iOSBuildLog.txt
UserImage.jpg
Ricardo Silva

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:

"preferences": {

    "ios": [{

            "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.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.