arxanas / blog

My blog.
https://blog.waleedkhan.name
2 stars 0 forks source link

post:rust-incremental-test-times,par:YXNwZXJ0aGVkb2N1 #26

Open sambacha opened 1 year ago

sambacha commented 1 year ago

debug.plist

<?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