I am trying to do a simple test when I am in DEV mode or when I am in RELEASE mode using the preprocessor settings. My settings are as follows:

I also have a constant.h file that I include in the App-prefix.pch file.
The contents of the file are as follows:
#ifndef myapp_Constants_h
#define myapp_Constants_h
#pragma mark - Instances
#ifdef DEBUG
#define WEB_SERVICE_BASE_URL @"http://local.someurl.com/"
#define LOGIN_PATH @"app_dev.php/user/login/"
#define REGISTER_PATH @"app_dev.php/user/register/"
#endif
#ifdef RELEASE
#define WEB_SERVICE_BASE_URL @"http://www.someurl.com/"
#define LOGIN_PATH @"user/login/"
#define REGISTER_PATH @"user/register/"
#endif
#endif
When I run the app on my iphone plugged to the mac, I always seem to get the DEBUG mode settings even though I should get the RELEASE settings.
why??
Xcode’s default configuration is to run in Debug, even on device. If you want to run your app in release, you can :
If you want to switch back and forth frequently, you could make another scheme (in “Manage Schemes”) and modify it to use the release build configuration. You can then easily switch between them with the scheme selector in the top-left corner of Xcode.