19

In general, my problem could be seen on this screen-shot:

A lot of non-symbolicated addresses and something that looks broken inside "Symbols" menu.

Well, and some settings and actions in attempt to solve this. But none still helped:

  • Profile tab is set to use Debug
  • Symbols stripping disabled for both Debug and Release
  • Optimization level is "none" for both Debug and Release
  • Clean, Delete, Restart, etc
  • mdimport ~/Library/Developer/
  • DWARF and dSYM format
Mihayl
  • 3,821
  • 2
  • 13
  • 32
bronenos
  • 239
  • 3
  • 4

5 Answers5

6

I had the same problem - and did everything on your list as well. Here's what finally worked for me:

  • In Instruments, stop the process if it's running.
  • Go to File -> Symbols, and under dSYM path, find the library that isn't being symbolicated.
  • In my case, it was pointing to items in the Trash. So I emptied the Trash, deleted the Module Cache and project in the Derived Data folder, and when I rebuilt the project it started working again. In your case it could be pointing to some other file that either doesn't exist or isn't reachable by Instruments.
Chris Garrett
  • 4,824
  • 1
  • 34
  • 49
1

Activating "Always Embed Swift Standard Libraries" on the target I was profiling, fixed it for me. YMMV

scaly
  • 509
  • 8
  • 18
0

I had the same problem running in the simulator, and it was driving me nuts because ALL the standard go-to fixes were not working.

What did it for me was plugging my iPad into the MacBook and running an instruments session against said app on my plugged in iPad. Instruments properly symbolicated my app when running on the iPad, and then continued to work when I disconnected the iPad and ran instruments later in the simulator.

I suspect it had something to do with updating my project to use the following...

  • libsqlite3.tbd instead of libsqlite3.dylib
  • libstdc++.6.tbd instead of libstdc++.dylib

I don't know why that would be the case, but that was the ONLY project change I had made before my symbols were lost in Instruments.

Logicsaurus Rex
  • 3,172
  • 2
  • 18
  • 27
0

In my case I had excluded my derived data directory from spotlight. It turns out that if you do this you must add it back into instruments via Instruments -> Preferences -> Symbols

tim harrison
  • 996
  • 1
  • 7
  • 12
0

You are able to add your dSYM[About] using Instruments 12.0

Instruments -> Preferences... -> Symbols
//or
File -> Symbols...
//if File -> Symbols... is not active - stop the process and try again

*Also do not forget to generate .dSYM file beforehand

yoAlex5
  • 29,217
  • 8
  • 193
  • 205