Controlling target build variables in an iphone project

We are moving into an automated build process for our iphone projects. These projects can be verified by individual developers, in which case all API URLs must point to a specific path. There are also various build environments, each with their own API root paths.

Maybe I could add a few different build targets and each includes a different url definition file, but that seems like a lot of support and a bit overkill.

Any better techniques out there for replacing multiple environment variables for different build conditions without too much trouble?

+2


a source to share


2 answers


Xcode Configuration files are probably what you are looking for. They add build customizations to a text file for easier management.



See also: https://stackoverflow.com/questions/tagged/xcconfig

+2


a source


In Project

tree>> Targets

light target>> Cmd-I

tab Build

...

highlight "GCC 4.2 - Precessing"

>Preprocessor macros



just add as many as needed eg.

  TARGET=8

      

+1


a source







All Articles