[Geofence Plugin] Error generating ios mobile app
Question
Forge component by Experts


Hi,

While generating the mobile app for ios, i am getting the below error:

Error generating application. At least one Cordova plugin used in the build requires Swift but no "Swift Language Version" build setting was defined. Check your plugins configuration.

Can you please help me to resolve the below issue. i am using the demo app.

Regards,


I have the same problem. I found this, but it didn`t work:

https://www.outsystems.com/forums/discussion/34435/update-plugin-swift-version/

Mohammad Hasib wrote:


Hi,

While generating the mobile app for ios, i am getting the below error:

Error generating application. At least one Cordova plugin used in the build requires Swift but no "Swift Language Version" build setting was defined. Check your plugins configuration.

Can you please help me to resolve the below issue. i am using the demo app.

Regards,


You can put in you app solution this configuration

{
    "plugin": {
        "url": "https://github.com/akofman/cordova-plugin-add-swift-support.git#2.0.2"
    }
}

And in the plugin confirm if this setting are there

{
    "plugin": {
        "url": "https://github.com/OutSystemsExperts/cordova-plugin-geofence#hotfix/swift3",
        "variables": [{
            "name": "USELEGACYSWIFTLANGUAGEVERSION",
            "value": "1"
        }]
    }
}


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