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

  • SEARCH
  • Home
  • 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 523131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:25:33+00:00 2026-05-13T08:25:33+00:00

I have found a set of great macros here Objective C Macros I put

  • 0

I have found a set of great macros here Objective C Macros

I put the:

#if DEBUG==1
#define .... macros

in my header file.

Now I simply can’t figure out where to set DEBUG=1 or DEBUG=0 in Xcode so that
it will define the macro when debugging and not when releasing.

Hope someone can help me find the missing drop down menu:)

  • 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-05-13T08:25:33+00:00Added an answer on May 13, 2026 at 8:25 am

    EDIT:

    Ok apparently, when working on an iPhone application, you have to:

    • select iPhone device as the active sdk
    • then edit project or target settings and in “Other C Flags” you type “-DDEBUG=1”

    Edit your project or target settings, select your Debug configuration then look for the “Preprocessor Macros” settings and type DEBUG=1

    However, I would rather define NDEBUG in the Release configuration then write

    #ifndef NDEBUG // if we are in debug mode
    #define bla bla bla
    #endif
    

    Note: you need to have a target that compiles Objective-C source files to a library or application properly set up; otherwise the settings don’t appear in the UI.

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

Sidebar

Related Questions

I have recently found the great card came - SET . Briefly, there are
The only SET parameter that I have found specific guidance for is SET TRANSACTION
I have not found any way to successfully set a screen resolution on my
I have set a property across threads before and I found this post Cross-thread
I have found an effect here and tried to implement the same adding some
I have found jQuery to be a great tool to simplify my MVC Views.
I have found some great articles ( Maoni , Richter #1 , Richter #2
Here's how I set up my app. I have a root view that loads
To this day, I have not found a great article about expressions - and
I have some code which I found online and it's working great. It lists

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.