Code Monkey home page Code Monkey logo

Comments (12)

heardrwt avatar heardrwt commented on August 30, 2024

Good point. I should likely wrap my #define in an #ifndef.

#ifndef RH_AB_INCLUDE_GEOCODING
#define RH_AB_INCLUDE_GEOCODING 1
#endif

from rhaddressbook.

airdrummingfool avatar airdrummingfool commented on August 30, 2024

Yeah, I tried wrapping the #define in an #ifndef but that didn't work, I think because the library is built before my project is (and thus RHAddressBook.h's #ifndef would be evaluated before my #define in my prefix header).

from rhaddressbook.

heardrwt avatar heardrwt commented on August 30, 2024

I pushed commit 0f5b9e8
You might have better luck passing RH_AB_INCLUDE_GEOCODING=0 in Preprocessor Macros (GCC_PREPROCESSOR_DEFINITIONS).

from rhaddressbook.

airdrummingfool avatar airdrummingfool commented on August 30, 2024

I tried that too, but it did not work.

from rhaddressbook.

heardrwt avatar heardrwt commented on August 30, 2024

Are you including RHAB as a sub-project?

from rhaddressbook.

airdrummingfool avatar airdrummingfool commented on August 30, 2024

Yes, I followed the instructions at http://rheard.com/blog/using-static-ios-libraries/ to set it up.

from rhaddressbook.

heardrwt avatar heardrwt commented on August 30, 2024

This is the only reference i can find to being able to pass flags to sub-projects directly.
ie using xcodebuild directly.
http://www.cocoabuilder.com/archive/xcode/299246-can-pass-some-value-to-sub-project.html

from rhaddressbook.

heardrwt avatar heardrwt commented on August 30, 2024

Easiest option is likely forking.

from rhaddressbook.

heardrwt avatar heardrwt commented on August 30, 2024

But you could setup a run script phase to build the sub-project using xcodebuild with a custom configuration file that overrides GCC_PREPROCESSOR_DEFINITIONS to include RH_AB_INCLUDE_GEOCODING=0

from rhaddressbook.

airdrummingfool avatar airdrummingfool commented on August 30, 2024

Gotcha, thanks for looking into it!

from rhaddressbook.

tonyxiao avatar tonyxiao commented on August 30, 2024

Shouldn't this be a run-time feature? Why use compile time macro for enabling / disabling?

from rhaddressbook.

tonyxiao avatar tonyxiao commented on August 30, 2024

The main problem with current way of supporting geocoding is that it's super slow if there are a large number of contacts.

from rhaddressbook.

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.