Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8336993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:09:38+00:00 2026-06-09T04:09:38+00:00

I am trying to do a simple test when I am in DEV mode

  • 0

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:

preprocessor settings

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??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T04:09:39+00:00Added an answer on June 9, 2026 at 4:09 am

    Xcode’s default configuration is to run in Debug, even on device. If you want to run your app in release, you can :

    • Use “Profile” (Command-I) or “Archive” (and then install the resulting app).
    • Modify your scheme by choosing “Product -> Edit Scheme”. (Or using Command-Option-R.) Click on the “Run” scheme, and change the “Build Configuration” to “Release”. (It’s in the “Info” panel.)

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When trying to build a simple test program that uses atomic operations, I get
I'm getting an InstantiationException when trying to map Date -> Calendar. Simple test follows:
I'm trying to run a simple test with Selenium that somebody over in QA
I'm trying to write a simple test that creates an image element, checks the
I am trying to log in eclipse in a very simple test app.I have
I have a simple test, where I am trying to update the object, but
I am trying to use the native PHP function to send a simple test
I'm trying to use the UI-Thread, so I've written a simple test activity. But
This is for Play! Framework 2.0. I'm trying to write a simple test case
I'm trying to make a very simple OSGi test but I can't get it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.