0

What is the most elegant way to define different values, for constants in my code base, based on the environment in Obj-C

e.g.

BASE_URL = http://localhost_ in development environment
BASE_URL = http://myproddomainname in prod/release environment
user462455
  • 12,838
  • 18
  • 65
  • 96
  • Add target config to xcode. http://stackoverflow.com/questions/6218434/how-to-add-configurations-to-xcode-4 – iDev Nov 05 '12 at 01:55
  • There are a half-dozen different ways to do it. Mostly, though, you define macro variables in the project, based on whether you're compiling for debug or release. – Hot Licks Nov 05 '12 at 02:07

0 Answers0