The error message you are getting is self explanatory: you need to use a compile time constant.
About having different debug and release constants, just use the following:
// YourConstants.h
extern NSString * const kYourConstant;
// YourConstants.m
#import "YourConstants.h"
#ifdef DEBUG
NSString * const kYourConstant = @"debugValue";
#else
NSString * const kYourConstant = @"productionValue";
#endif