cowbell / cordova-plugin-geofence

Geofencing plugin for cordova
Apache License 2.0
264 stars 318 forks source link

xcode 9.3 _Incremental #270

Open josh-m-sharpe opened 6 years ago

josh-m-sharpe commented 6 years ago

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

floydspace commented 6 years ago

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.

josh-m-sharpe commented 6 years ago

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