From 5761c2fa9593a595ae447177636ca72d906b76a6 Mon Sep 17 00:00:00 2001 From: Taylor Holliday Date: Sat, 27 May 2023 13:23:25 -0700 Subject: [PATCH] Create sign-examples.sh --- sign-examples.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 sign-examples.sh diff --git a/sign-examples.sh b/sign-examples.sh new file mode 100755 index 0000000..1ee35cc --- /dev/null +++ b/sign-examples.sh @@ -0,0 +1,16 @@ +#!/bin/zsh + +# This re-signs the examples so they can be profiled with Instruments on macOS. +# See https://developer.apple.com/forums/thread/681687 + +# Make sure to set the shell to zsh, not bash +# +# For Instruments, re-sign binary with get-task-allow entitlement +codesign -s - -v -f --entitlements =(echo -n ' + + + + com.apple.security.get-task-allow + + +') target/debug/examples/*