19

I have a bit of a dilemma — no matter what I do, I cannot get Apple's Instruments.app to symbolicate any of the included instruments while I'm profiling on my devices (it works OK in the iOS Simulator).

I've tried just about everything I can think of, including:

  • Checking that I'm actually building a dSYM
  • Switching between Debug and Release build schemes
  • Making sure that the signing certificate being used in my Development cert
  • Adding and removing my Derived Data folder from Spotlight's Privacy list
  • Clean & Build before profiling
  • Removing the Derived Data folder before building and profiling

I'm not sure where to go from here — I had symbols for an hour or two earlier in the week, but I just can't get them to show up at all anymore. It would be great to figure out what the mystical incantation is to make Instruments always find my app's symbols.

Tony Arnold
  • 2,738
  • 1
  • 23
  • 34

4 Answers4

18

Did you ensure you are signing the app with a development profile (as opposed to a distribution profile)? Be aware that you are usually using release builds with instruments so make sure you didn't choose a distribution profile for your release configuration...

Dan
  • 189
  • 1
  • 2
  • This is a really old question, and a some of the issues here were probably being caused by bugs in the toolchain at the time (requiring the workarounds I linked to in the promoted answer above). I'm not sure that this question is really relevant anymore, as it's been a long time since I've had problems symbolicating. Thanks for posting, though :) – Tony Arnold Sep 30 '12 at 11:52
  • 4
    This did it for me. I was going crazy with tons of other posts about spotlight, re-symbolication, etc. All it came down to is that Profile runs your Release configuration and we had Release set to Distribution for Ad Hoc distribution. When I set Release to use Developer, it worked like a charm. Thanks @Dan! – RickDT Nov 28 '12 at 14:34
  • Plus one for that. I'd forgotten that my Release build certificate had changed back from developer to distribution when I updated the project file from git. Thanks! – davehayden Dec 17 '12 at 20:43
18

In the File menu there is an option for Re-Symbolicate Document. Choosing this, you can find your binary in the list and use the Locate button to specify the location of the dSYM manually. There is also a checkbox here for using Spotlight to find the dSYM; it's possible it got deactivated if Spotlight was borked at some point but is now fixed.

It seems that you cannot do this while Instruments is actually instrumenting, but it does seem to keep the setting for the next time you hit Record. It does not, however, seem to remember the setting after you close Instruments.

Anomie
  • 92,546
  • 13
  • 126
  • 145
  • 1
    Thanks Anomie — I ended up finding much the same answer: http://tonyarnold.com/post/3627/what-to-do-when-all-you-have-is-symblolication/ – Tony Arnold May 24 '11 at 04:04
  • @TonyArnold: Yoo bad you hadn't come back here to post the answer, or I wouldn't have had to figure it out myself too ;) – Anomie May 24 '11 at 10:43
  • 5
    I am not able to do this, when I select the dsym instruments says that: "Re-Symbolication requires MyApp.app.dSYM and AppleProfileKEventAction to have matching UUIDs. " – Lio Oct 24 '12 at 12:46
  • I am facing the same issue. My binary is not showing up in the list – Prem Dec 14 '12 at 11:03
  • 3
    If it's not showing up, try to change provisioning to development – johnlinvc Dec 22 '12 at 06:31
  • 4
    If it's not showing up in the list, go back to Xcode and change the Target's Code Signing Identity for Release to a Developer profile (not distribution). – Norbert Jan 05 '13 at 17:47
0

Aside from xcode's tools, you can use atos: https://stackoverflow.com/a/4954949/312725

Be sure to take slide into account as well: https://stackoverflow.com/a/13576028/312725

(I'm adding this information to several related questions that are related to that, but aren't exactly duplicate questions. This is copy-pasted, it's a honest attempt to help someone who googled that question rather then spam.)

Community
  • 1
  • 1
Max Yankov
  • 12,551
  • 12
  • 67
  • 135
0

I've seen Instruments 4.2 fail to symbolicate several times with the correct dSYM file.

After saving and quit/restart Instruments, it will then symbolicate.

(Sometimes I'll capture a small sample and make sure it works before collecting large samples.)

Walt Sellers
  • 3,806
  • 30
  • 35