christocracy / cordova-plugin-background-geolocation

Sophisticated, battery-conscious, cross-platform background-geolocation with motion-detection
http://transistorsoft.github.io/cordova-background-geolocation
492 stars 744 forks source link

iOS: 'CDVLocation.h' file not found #4

Closed 23tux closed 10 years ago

23tux commented 10 years ago

Hi,

I installed your plugin with cordova plugin add https://github.com/christocracy/cordova-plugin-background-geolocation.git on cordova 3.3.0-rc.1. Deploy target is iOS 7. When I open the project in XCode, and try to compile, I get the following error:

/Users/user1/tracker/platforms/ios/tracker/Plugins/org.transistorsoft.cordova.background-geolocation/CDVBackgroundGeoLocation.m:6:9:
'CDVLocation.h' file not found

I tried adding the org.apache.cordova.geolocation plugin. Here I can compile everything in XCode, but then when I start the app, it throws the following error in the javascript console in the file cordova.js:79:

module org.transistorsoft.cordova.background-geolocation.BackgroundGeoLocation already defined

After that, the deviceready event isn't fired (because of the error). I hope, you can help me, to get this running. I'd love to use your plugin ;)