cowbell / cordova-plugin-geofence

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

Unnable to build ios & android #275

Open pixelscriptro opened 6 years ago

pixelscriptro commented 6 years ago

I`m getting this error:

(node:15952) UnhandledPromiseRejectionWarning: Error: Cannot find module '../cordova/platform_metadata'

I`ve also downgrade the cordova to 7.0.1, same error.

Cordova version: 8.0.0 (same with 7.0.1) Ionic version: 3.20.0 NodeJS version: 8.11.1 NPM version: 5.6.0 XCode version: 9.2.0

pbijvani commented 6 years ago

I am also getting same error. Any fix?

dewald-els commented 6 years ago

The plugin is incompatible with cordova 8.0.0

Until it is fixed you will have to downgrade to Cordova version 7.1.0.

dewald-els commented 6 years ago

@pixelscriptro I've downgraded my system to cordova 7.1.0 and it could get it building again. Please remove the plugin and add it again after downgrading.

Let me know if this helps.

kitolog commented 6 years ago

1) Remove the plugin cordova plugin remove cordova-plugin-geofence 2) Install manually cordova-plugin-add-swift-support cordova plugin add cordova-plugin-add-swift-support --save https://github.com/akofman/cordova-plugin-add-swift-support 3) Install geofence again cordova plugin add cordova-plugin-geofence 4) Enjoy! (The latest swift-support works fine with cordova 8)

dewald-els commented 6 years ago

Thanks @kitolog I will try it later today!

robbash commented 5 years ago

I tried to get it running today on macOs mojave/Xcode 10.1, and neither downgrading to 7.1.0 nor installing the cordova-plugin-add-swift-support plugin helped. It seems to be a problem that the swift code of this repo is version 2.3.

Is this a recognised issue?

Mathias-seemyapps commented 5 years ago

@robbash I have the same issue, have you found a solution?

kanishka089 commented 4 years ago

Hi I am having the same issue. plugin is not working with cordova 8. Please fix