TealShift
TealShift

Reputation: 962

Xcode profiling instrument call tree does not recognize my source code

I'm using Xcode's Memory Leak profiling instrument: Green boxes are my app's name in lowercase.

I'm trying to figure out why the call tree shows the "framework" icon next to calls in my app's code instead of that black profile icon like normal. This is preventing me from finding my source code that's causing a memory leak.

I tried using the File > Symbols... menu and saw this: enter image description here

I located the .app.dSYM file from the Xcode organizer and copied it to outside the .xcarchive file where I could select it from the above "locate" button. THEN I GET THIS: enter image description here

Anyone have an idea what's going on?

Upvotes: 2

Views: 1780

Answers (1)

TealShift
TealShift

Reputation: 962

Alright, I just needed to point Instruments to the binary instead of the dSYM file. Click the folder button next to the red text, then navigate to /Users//Library/Developer/Xcode/DerivedData/-/Build/Products/Debug-iphoneos/

Thanks to @user1118321 for pointing out the thing I missed (obvious red text). A symbolication failure usually suggests the dSYM is missing, but you also need the binary.

Upvotes: 4

Related Questions