-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55a8506
commit 5761c2f
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 '<?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>') target/debug/examples/* |