Reputation: 3463
I'm trying to instrument my iPhone app via Xcode's Instruments tool. Problem is, Instruments isn't symbolicating correctly, so I can't tell which lines of code are causing app hangs / troubles.
Per some related posts on Stack Overflow and the internet in general, I've tried adding a dSYM search path in Instruments by going to Instruments > Settings > Symbols. However, when I go to select what appears to be my app (UnitConversions.app), it's grayed out an not selectable (see screenshot below).
My Xcode project build settings are configured so that Debug Information Format equals DWARF with dSYM File. At this point, I'm out of ideas as to how I can add the proper dSYM to Instruments and get it to be able to symbolicate properly.
Any ideas? Thanks.
Update (05/23/2024): I'm attaching a screenshot of the sheet that shows on my version of Instruments (15.3) when I select File > Symbols (for comparison purposes). It does not seem to contain the "Executables" or "Incomplete" tabs that appear in many examples online (or Swift Dev Journal's answer below).
Upvotes: 0
Views: 751
Reputation: 20088
Xcode projects are set up to use dSYM files for Release builds, not Debug builds. Debug builds place the debugging symbols in the executable instead of a separate dSYM file. In your screenshot you are showing a Debug version of your app, which would explain why there's no dSYM file for you to select.
The way to locate a dSYM file to use with Instruments is to choose File > Symbols in Instruments. A sheet like the following opens:
Select your app from the list on the left. Click the Locate button to find the dSYM file.
The Symbols menu item may be disabled until you finish a trace session.
Upvotes: 1