Wednesday, 8 February 2012

Environment-specific configuration in iOS / Xcode

Specifying different config values for your different environments in Xcode (Debug, Release etc) can be achieved in different ways, but this great blog post explains one method in detail.

In summary this approach adds a new Configuration/${CONFIGURATION} Key/Value to the main plist file, a new plist file specifying values, and a singleton to load up and share the values throughout your code.

I won't repeat it in detail. Take a look yourself.

No comments:

Post a Comment

Comments are moderated, so you'll have to wait a little bit before they appear!