Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Having problems building hRouting (from Github)

han35han35 Posts: 5New Users Noob
Link: https://github.com/dhasenfratz/hRouting_iOS

Hi guys, I need to run this project on Xcode but I am having a lot of trouble. It either tells me that some files cannot be found or there is some kind of linker error. This is my first time using Xcode (and Github) so maybe I'm doing something wrong. If possible, can someone run this project in Xcode and see if it works? Would be much appreciated. Cheers!

Replies

  • dev666999dev666999 Posts: 3,594New Users @ @ @ @ @
    han35 wrote: »
    Link: https://github.com/dhasenfratz/hRouting_iOS

    Hi guys, I need to run this project on Xcode but I am having a lot of trouble. It either tells me that some files cannot be found or there is some kind of linker error. This is my first time using Xcode (and Github) so maybe I'm doing something wrong. If possible, can someone run this project in Xcode and see if it works? Would be much appreciated. Cheers!

    That is the magic sentence. There are too many variables to determine the problem, especially for a newbie.

    You should learn how to program using Xcode before you try to incorporate Github projects.

    Baby steps. ;)
  • han35han35 Posts: 5New Users Noob
    I just want to know if anyone else can run the project, just so I know that it's actually build-able and it's just me failing, or if the source code is actually incomplete.
  • dev666999dev666999 Posts: 3,594New Users @ @ @ @ @
    edited March 2015
    You're in over your head. But here goes...

    Using the provided Sample Project...nRoutingApp

    Error message I get:

    /Users/dprogrammer/Downloads/hRouting_iOS-master/hRoutingApp/HealthyRouting/MapViewController.m:22:9: 'GoogleMaps/GoogleMaps.h' file not found

    You need to get the Google API key and enter that key in your AppDelegate.h file.

    At the top of that file are the instructions for doing so...
    // Google API key for hRouting (REPLACE WITH OWN KEY!).
    #define GOOGLE_MAPS_API_KEY @"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    


    To get the GoogleMaps key, go here and follow the bouncing ball. Once you have your key, and have entered it, let us know if it runs.

    https://developers.google.com/maps/documentation/ios/start

    The above error message is the only one I got... and getting a key may/may not solve your problem. The error means it cannot find your GoogleMaps.h file... which for me is part of GoogleMaps.framework and highlighted in red. You may need to get that too, and drag it into your project again, even though the developer originally did that for you. Hopefully the simple addition of that Key will make the error message go away. If not, add the GoogleMaps.framework again.

    Disclaimer: Have worked with Google Keys... but have not worked with GoogleMaps.
  • han35han35 Posts: 5New Users Noob
    I already have a GoogleMaps API key and the GoogleMaps framework. That part is fine, I don't have a problem with that.
  • dev666999dev666999 Posts: 3,594New Users @ @ @ @ @
    That's the only error I am getting. If I get a key, I should be good to go, unless it creates more errors.

    It would best if you listed exactly what your error messages are. Then we can perhaps get a better feel for your problem.
  • han35han35 Posts: 5New Users Noob
    edited March 2015
    After this I received some messages saying certain image files (.jpp, .png) could not be found. This wasn't a big issue, I just created some dummy image files.

    My main problem was when it said HealthyRoutingTest.m could not be found. I don't know if it's some kind of linking error or something but I can't find it myself. I'm beginning to think that the code is just incomplete.

    The source code is meant to be for this app: https://itunes.apple.com/us/app/hrouting-health-optimal-route/id931299863?mt=8

    It is (supposedly) complete.
  • dev666999dev666999 Posts: 3,594New Users @ @ @ @ @
    HealthyRoutingTests.m is in red... indicating the file is missing. Double clicking on it gives me a blank page.

    I don't get an error message that it is missing though. Don't think it is required to get the project to run.
  • han35han35 Posts: 5New Users Noob
    edited March 2015
    Ok since it's not important I created a blank HealthyRoutingTests.m.

    The error message I get now is:

    ld: file not found: /Users/[my name]/Library/Developer/Xcode/DerivedData/hRouting-duyykcmibzbvgpflbttjqltcmneb/Build/Products/Debug-iphonesimulator/HealthyRouting.app/HealthyRouting
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
Sign In or Register to comment.