Create Custom Builds of an Xcode Project

Posted by macinjosh on Stack Overflow See other posts from Stack Overflow or by macinjosh
Published on 2010-04-18T21:16:14Z Indexed on 2010/04/18 21:23 UTC
Read the original article Hit count: 391

I am going to build a Mac application written in Obj-C with Xcode. For argument's sake let's say it will have 10 optional features. I need a way to enable or disable those features to create custom builds of the application. These builds would be automated (most likely through the Mac OS X Terminal) so I would need a way to state which of these features are enabled/disabled at build time (a configuration file or CLI arguments would be ideal.)

So what is the best way to accomplish this? I'm trying to plan this out before I start coding so that there is proper separation in my code base to allow for these features to come and go. Ideally the custom build would only contain compiled code for the features it should have. In other words I don't want to always compile all the features and condition them out at runtime.

© Stack Overflow or respective owner

Related posts about build-process

Related posts about xcode