Instruments cannot find binary for disassembly

Since version 14, Instruments cannot find the binary to show disassembly of executable or library. It says: Error - Binary file for selected symbol is expected to be here: /Users/<user>/Library/Developer/Xcode/DerivedData/<project>/Build/Products/Release/<project>.

The thing is that the path shown by Instruments is actually the right one, and of course the binary exists in this directory.

Am I missing something somewhere ?

Post not yet marked as solved Up vote post of chubert Down vote post of chubert
1.4k views

Accepted Reply

Hello there,

Instruments 14.0 has known issue to show disassembly for sybmols without access to DWARF information (dSym or executable with debug symbols). It was resolved in Instruments 14.1 which you can download with Xcode 14.1 from App Store or developer.apple.com/download.

--

Anton

  • I'm experiencing the same (or a similar) issue in Instruments 15.0.1 trying to profile a Rust binary built using cargo. I tried with debug info embedded in the binary and with debug info in a separate dSYM folder. In both cases, the source view worked, but Instruments says "Binary file for selected symbol is expected to be here:" followed by the correct path to the executable. Is there a workaround for this issue? Thanks!

  • It seems I'm also hit by this, so have you figured out a solution? I haven't been able to figure anything out.

Add a Comment

Replies

Hello there,

Instruments 14.0 has known issue to show disassembly for sybmols without access to DWARF information (dSym or executable with debug symbols). It was resolved in Instruments 14.1 which you can download with Xcode 14.1 from App Store or developer.apple.com/download.

--

Anton

  • I'm experiencing the same (or a similar) issue in Instruments 15.0.1 trying to profile a Rust binary built using cargo. I tried with debug info embedded in the binary and with debug info in a separate dSYM folder. In both cases, the source view worked, but Instruments says "Binary file for selected symbol is expected to be here:" followed by the correct path to the executable. Is there a workaround for this issue? Thanks!

  • It seems I'm also hit by this, so have you figured out a solution? I haven't been able to figure anything out.

Add a Comment

Thank you Anton for your reply.

At the moment of writing my question, I already updated to 14.1. Now I've deleted the full build directory and recompiled my project and it seems to work fine.

Thank you again, Cédric

I'm having the same trouble with Instruments 14.1. I tried deleting the build folder, but the problem remains. Any other suggestions?