cordova-plugin-geofence
cordova-plugin-geofence copied to clipboard
xcode 9.3 _Incremental
When building in xcode I get this:
Use of undeclared type '_Incrementable'
cordova/ionic show an error like this: (the arrow is pointing at _Incremental as well:
public struct JSONIndex: Comparable, _Incrementable, Equatable { ^~~~~~~~~~~~~~
** BUILD FAILED **
The following build commands failed: CompileSwift normal x86_64 /Users/jsharpe/yellowstone/mobile/platforms/ios/D Fuse v0.0.12/Plugins/cordova-plugin-geofence/GeofencePlugin.swift CompileSwift normal x86_64 /Users/jsharpe/yellowstone/mobile/platforms/ios/D Fuse v0.0.12/Plugins/cordova-plugin-geofence/SwiftData.swift CompileSwift normal x86_64 /Users/jsharpe/yellowstone/mobile/platforms/ios/D Fuse v0.0.12/Plugins/cordova-plugin-geofence/SwiftyJson.swift CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
The _Incrementable protocol has been deleted from the inheritance hierarchy of Swift in version 3.3. So just remove it from SwiftyJson.swift file next to JSONIndex derived struct. Seems it is not required.
@F1oyd this appears to compile: https://github.com/cowbell/cordova-plugin-geofence/pull/271