-
-
Save uvesten/e5e872107226e56b81fc699a9e93e26a to your computer and use it in GitHub Desktop.
Code signature workaround for dylibs on macOS 11.0 (Apple Silicon)
This file contains hidden or 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
# add the following to .zshenv | |
replace_inode() { | |
local filename | |
for filename; do | |
chmod o+w "${filename}" | |
rm -f "${filename}.bak" | |
mv -f "${filename}" "${filename}.bak" | |
cp "${filename}.bak" "${filename}" | |
rm -f "${filename}.bak" | |
done | |
} | |
# then run | |
$ find /usr/local -type f -name '*.dylib' -print0 \ | |
| xargs -r0 zs -c 'replace_inode "$@" && codesign -s - -f "$@"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment