Skip to content

Commit

Permalink
Add the disable-library-validation entitlement.
Browse files Browse the repository at this point in the history
  • Loading branch information
culler committed Oct 27, 2023
1 parent 8e0bc4a commit 8912842
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion macOS/bin/sign-bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ echo "Signing $APP ..."
FRAMEWORKS=$APP/Contents/Frameworks
MACOS=$APP/Contents/MacOS
pushd $WORK_DIR
SIGN="codesign -s $IDENTITY --timestamp --options runtime --force"
SIGN="codesign -s $IDENTITY --entitlements entitlements.txt --timestamp --options runtime --force"

for executable in `find $FRAMEWORKS -perm +111 -type f`; do
$SIGN $executable
Expand Down
8 changes: 8 additions & 0 deletions macOS/entitlement.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>

0 comments on commit 8912842

Please sign in to comment.