Geofence not building with ionic package

hi, I am using geofence pluggin, i really need to do a build with ionic cloud for ios,
I’m sure it It stopped working after adding the geofence plugin, it works fine on android but not on ios,

im using
“cordova-plugin-geofence”: “^0.7.0”,
@ionic-native/geofence”: “^4.2.1”,


This is a part of the output

/Users/package/Library/Developer/Xcode/DerivedData/QueMesa-
CompileSwift normal arm64 /Users/package/workspace/apps-0faa2935-336/cordova/platforms/ios/QueMesa/Plugins/cordova-plugin-geofence/GeofencePlugin.swift
    cd /Users/package/workspace/apps-0faa2935-336/cordova/platforms/ios
    /Applications/Xcode8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -primary-file /Users/package/workspace/apps-0faa2935-336/cordova/platforms/ios/QueMesa/Plugins/cordova-plugin-geofence/GeofencePlugin.swift /Users/package/workspace/apps-0faa2935-336/cordova/platforms/ios/QueMesa/Plugins/cordova-plugin-geofence/SwiftData.swift /Users/package/workspace/apps-0faa2935-336/cordova/platforms/ios/QueMesa/Plugins/cordova-plugin-geofence/SwiftyJson.swift -target arm64-
                                      : 
/Users/package/workspace/apps-0faa2935-336/cordova/platforms/ios/QueMesa/Plugins/cordova-plugin-geofence/SwiftyJson.swift:897:35: error: expected ',' joining parts of a multi-clause condition
        if let errorValue = error where errorValue.code == ErrorNotExist{
                                 ~^~~~~
                                 ,
/Users/package/workspace/apps-0faa2935-336/cordova/platforms/ios/QueMesa/Plugins/cordova-plugin-geofence/SwiftData.swift:1612:21: error: 'SQLiteDB' is inaccessible due to 'private' protection level
extension SwiftData.SQLiteDB {
                    ^
/Users/package/workspace/apps-0faa2935-336/cordova/platforms/ios/QueMesa/Plugins/cordova-plugin-geofence/SwiftData.swift:1036:19: note: type declared here
    private class SQLiteDB {
                  ^
/Users/package/workspace/apps-0faa2935-336/cordova/platforms/ios/QueMesa/Plugins/cordova-plugin-geofence/SwiftData.swift:1831:21: error: 'SQLiteDB' is inaccessible due to 'private' protection level
extension SwiftData.SQLiteDB {
                    ^
/Users/package/workspace/apps-0faa2935-336/cordova/platforms/ios/QueMesa/Plugins/cordova-plugin-geofence/SwiftData.swift:1036:19: note: type declared here
    private class SQLiteDB {
                  ^
/Users/package/workspace/apps-0faa2935-336/cordova/platforms/ios/QueMesa/Plugins/cordova-plugin-geofence/SwiftData.swift:1971:21: error: 'SDError' is inaccessible due to 'private' protection level

some one can help me?

ok i have found a solution
just adding
<preference name="UseLegacySwiftLanguageVersion" value="true" />

to config.xml it force to ionic cloud use a specific Swift version

1 Like