#!/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/*