I should separate Live and Dev URL. So, I write this code
#define _APP_MODE @"real"
#if APP_MODE == dev
#define _BASE_URL @"http://devmall.aaa.com/m/app/"
#define _URL_FROM_SAFARI @"http://devmall.safari.com"
#else
#define _BASE_URL @"http://m.aaa.com/m/app/"
#define _URL_FROM_SAFARI @"http://m.safari.com"
but it always return dev_url
What is the best way to make sure that the URL is separated by APP_MODE?