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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:13:12+00:00 2026-05-14T22:13:12+00:00

I am compiling an iPhone application via command line (so no Xcode options involved)

  • 0

I am compiling an iPhone application via command line (so no Xcode options involved) however I am unable to get my symbol names to show when profiling with Instruments.

I have tried several flags such as -gdawrf-2 and -g without any success. I have also tried using dsymutil to generate a .dSYM file but I have no clue how I’m supposed to use it so that failed as well.

  • 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-14T22:13:13+00:00Added an answer on May 14, 2026 at 10:13 pm

    How Instruments obtains debug information:

    Instruments obtains debug info from a .dSYM file which is normally generated automatically by XCode when setting Debug Information Format to DWARF with dSYM File combined with a checkmark in the Generate Debug Symbols option box. Setting these options will add an extra step to the XCode build process and generate a dSYM file after the application has been compiled. Every dSYM is built with a UUID that corresponds to a UUID in a Mach-O section in the binary that it’s derived from. A Spotlight importer indexes the UUIDs of every dSym file that is in a Spotlight-accessible location on your Mac. Therefore SPOTLIGHT does all the black magic and is responsible of making the link between the .app you are running and its corresponding .dSYM file.

    How to generate debug information and dSYM file without XCode:

    Make sure you are compilig with –gdwarf-2 and -g flags. (Other flag combinations might work)

    -g
    Produce debugging information in
    the operating system’s native format
    (stabs, COFF , XCOFF , or DWARF 2).
    GDB can work with this debugging
    information. On most systems that use
    stabs format, -g enables use of extra
    debugging information that only GDB
    can use; this extra information makes
    debugging work better in GDB but will
    probably make other debuggers crash or
    refuse to read the program. If you
    want to control for certain whether to
    generate the extra information, use
    -gstabs+, -gstabs, -gxcoff+, -gxcoff, or -gvms (see below). GCC allows
    you to use -g with -O. The shortcuts
    taken by optimized code may
    occasionally produce surprising
    results: some variables you declared
    may not exist at all; flow of control
    may briefly move where you did not
    expect it; some statements may not be
    executed because they compute
    constant results or their values were
    already at hand; some statements may
    execute in different places because
    they were moved out of loops.
    Nevertheless it proves possible to
    debug optimized output. This makes it
    reasonable to use the optimizer for
    programs that might have bugs.

    -gdwarf-2
    Produce debugging information in DWARF version 2 format
    (if that is supported). This is the
    format used by DBX on IRIX 6. With
    this option, GCC uses features of
    DWARF version 3 when they are useful;
    version 3 is upward compatible with
    version 2, but may still cause
    problems for older debuggers.

    Generate a dSYM file using dsymutil. If the tool isn’t recognized in command line, use spotlight to find it.
    IMPORTANT: Place .app file on your mac HD before you generate the dSYM if you are working on a networked drive.

    dsymutil MyApp.app/MyApp -o
    MyApp.app.dSYM

    Place the .dSYM file on the mac’s local drive and run Instruments as you normally would.

    Resettig spotlight’s indexing:

    If symbols aren’t shown, it might be because spotligh is bugged. You can try reseting spotlight’s indexing by adding your folder containing the dSYM file (or even your drive) to the “Prevent spotlight from searching these locations” in the spotlight preferences and then removing it right away.

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

Sidebar

Ask A Question

Stats

  • Questions 414k
  • Answers 414k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Grouping forms by colour would be OK. Users would quickly… May 15, 2026 at 8:39 am
  • Editorial Team
    Editorial Team added an answer Aha, my fault, that’s a bug. Wrong prefix header setting… May 15, 2026 at 8:39 am
  • Editorial Team
    Editorial Team added an answer Probably <wbr> is what you're looking for. May 15, 2026 at 8:38 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.