Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode - Instruments: missing symbols

I am profiling my WatchKit extension app with time profiler but the trace is unsymbolicated:

enter image description here

I mean that these are all extraneous symbols for me and I can't find my methods names. If I click on any of these symbols I can see assembly code. How do I obtain the symbolicated trace?

like image 718
Ramy Al Zuhouri Avatar asked Dec 13 '17 21:12

Ramy Al Zuhouri


1 Answers

Your screenshot is showing a symbolicated trace. If the trace was not symbolicated, you would be seeing memory addresses instead of function names.

Your problem is the code from Apple's libraries is filling the detail view, making it difficult for you to find your code. Hide the code from the system libraries so you can find your code. At the bottom of the window in your screenshot there's a Call Tree button in blue. Click that button and select the Invert Call Tree and Hide System Libraries checkboxes. Selecting those checkboxes will make finding your code easier.

enter image description here

For anyone reading this question that has an unsymbolicated trace, the most likely problem is Instruments can't find the dSYM file that contains your debugging symbols. In Xcode 9 choose File > Symbols to locate the dSYM file, which is usually located in the same directory as the application bundle for the release version of your app.

like image 141
Swift Dev Journal Avatar answered Sep 20 '22 06:09

Swift Dev Journal