Giter Club home page Giter Club logo

Comments (12)

UXVirtual avatar UXVirtual commented on July 20, 2024

+1 to this. We've having the same problem getting projects using this plugin to compile in XCode 6.3.

from cordova-plugin-geofence.

DataHerder avatar DataHerder commented on July 20, 2024

I actually fixed this, it looks like there were some mild changes to swift that broke this. One issue is the NSString optional assigned to a String variable, just changing NSString to String fixes it and there's some "as" to "as!" changes. I forked the repo, I'll make changes and push and see if he can help test and make sure that everything still works as expected before he merges.

Thanks!

from cordova-plugin-geofence.

tsubik avatar tsubik commented on July 20, 2024

Great 👍 . I haven't upgraded to XCode 6.3 yet. Waiting for PR

from cordova-plugin-geofence.

DataHerder avatar DataHerder commented on July 20, 2024

Hey tsubik! I just pushed this to the forked repo, let me know when you have a chance to look it over. It has formatting changes on top of the code changes so the diffs are a little muddy.

EDIT -- The muddy diffs bothered me so I reverted back and did a copy over. Just the changes are in the diffs for ease of view

from cordova-plugin-geofence.

UXVirtual avatar UXVirtual commented on July 20, 2024

Hey @DataHerder I'm getting the following errors after installing your fork of the plugin:

2015-04-17 09:26:28.044 notificationTesterApp[1520:376116] CDVPlugin class HWPGeofencePlugin (pluginName: GeofencePlugin) does not exist.
2015-04-17 09:26:28.045 notificationTesterApp[1520:376116] ERROR: Plugin 'GeofencePlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2015-04-17 09:26:28.045 notificationTesterApp[1520:376116] -[CDVCommandQueue executePending] [Line 159] FAILED pluginJSON = ["GeofencePlugin534443115","GeofencePlugin","initialize",[]]
2015-04-17 09:26:28.045 notificationTesterApp[1520:376116] CDVPlugin class HWPGeofencePlugin (pluginName: GeofencePlugin) does not exist.
2015-04-17 09:26:28.046 notificationTesterApp[1520:376116] ERROR: Plugin 'GeofencePlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.

This is after removing the generated XCode project and creating it again using cordova platform add ios and cordova build ios.

from cordova-plugin-geofence.

DataHerder avatar DataHerder commented on July 20, 2024

I was able to successfully compile the application using my repo with a new starter project. Here are the steps:

Step 1:
ionic start test-geo

Step 2:
sudo chmod 777 test-geo
I need to do that on my machine or I get a node error, may not be the same for you

Step 3:
sudo npm install

Step 4:
cordova plugin add https://github.com/DataHerder/cordova-plugin-geofence.git

Step 5:
ionic platform add ios

Step 6:
Open up xcode project in Xcode and compile

from cordova-plugin-geofence.

UXVirtual avatar UXVirtual commented on July 20, 2024

What kind of build settings are you using in Xcode? I'm getting the following errors now: when targeting iOS 7.0 or higher as my deployment target: screenshot

I've created a fresh project and followed the above steps.

from cordova-plugin-geofence.

UXVirtual avatar UXVirtual commented on July 20, 2024

Turns out that creating a new ionic project over the top of the existing project isn't a good idea. It's running as expected now without compile errors. :-P

from cordova-plugin-geofence.

DataHerder avatar DataHerder commented on July 20, 2024

👍 cool!

from cordova-plugin-geofence.

rlataguerra avatar rlataguerra commented on July 20, 2024

@DataHerder
I can confirm that too (the String an as!) I made the change on my project and it worked great.

Are you doing a pull request? If not, I will

from cordova-plugin-geofence.

DataHerder avatar DataHerder commented on July 20, 2024

I am unable to create a branch on this project and I am unable to push to a branch on this project at this time unless tsubik gives me access apparently. I get Forbidden access pushing a branch "swift-change" to the repo.

from cordova-plugin-geofence.

rlataguerra avatar rlataguerra commented on July 20, 2024

#39

from cordova-plugin-geofence.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.