cordova-plugin-geofence icon indicating copy to clipboard operation
cordova-plugin-geofence copied to clipboard

xcode 9.3 _Incremental

Open josh-m-sharpe opened this issue 7 years ago • 2 comments

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

josh-m-sharpe avatar Mar 30 '18 03:03 josh-m-sharpe

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.

floydspace avatar Apr 04 '18 19:04 floydspace

@F1oyd this appears to compile: https://github.com/cowbell/cordova-plugin-geofence/pull/271

josh-m-sharpe avatar Apr 05 '18 01:04 josh-m-sharpe