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 6539135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:49:17+00:00 2026-05-25T10:49:17+00:00

If something is not used in C++, it’s not compiled at all. Is the

  • 0

If something is not used in C++, it’s not compiled at all. Is the same true for iPhone?
If I compile a program and there are unused classes or other stuff, will it be compiled or ignored?

  • 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-25T10:49:18+00:00Added an answer on May 25, 2026 at 10:49 am

    It depends on your build settings.

    Under your target build settings, then under "Linking" there is an option for "Dead Code Stripping". It defaults to yes for projects created with Xcode.

    enter image description here

    Here’s a link to the build settings documentation from Apple (with an excerpt):

    https://developer.apple.com/library/archive/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html

    DEAD_CODE_STRIPPING (Dead Code Stripping)

    Description: Boolean value.

    Specifies whether dead code is stripped from the binary.

    Prerequisite: $GCC_DEBUGGING_SYMBOLS = full

    Values:

    YES: Dead code is stripped from
    the binary when the prerequisite is met.

    NO: Dead code is not stripped
    from the binary.

    Default value: NO Companions: “GCC_DEBUGGING_SYMBOLS
    (Level of Debug Symbols).” Prerequisite for:
    PRESERVE_DEAD_CODE_INITS_AND_TERMS

    Note, the docs say the value defaults to NO, but Xcode project settings default the value to YES.

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

Sidebar

Related Questions

Is there an exhaustive list of all of the base (not used in an
I've not used PEAR before, and so I'm probably doing something dumb. I've installed
I'm working on a security project in Javascript (something I honestly have not used),
want to ask user to input something but not want to wait forever. There
I've not used Spring too much, so I might be missing something obvious. Anyway,
This is something the professor showed us in his scripts. I have not used
Having not used MSMQ before, I'm not at all clear an the client environment
I remember something about not changing the keys in a for my $key (
DISCLAIMER: The following code is not something I would ever use in a real
I am using Contains() to identify something that NOT contain in the list. So

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.