<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>com.apple.security.get-task-allow</key><true/></dict></plist>
use debug.plist and codesign the rust binary
#!/usr/bin/env bash
# NOTE: Binary MUST have dSYM info; must be built with debug info (in our case rust binary)
set -ex
codesign -s - -v -f --entitlements debug.plist /path/to/your/rust/binary || exit 1
you can now instrument correctly and debug using macOS Instruments.app
debug.plist
use debug.plist and codesign the rust binary
you can now instrument correctly and debug using macOS
Instruments.app