Skip to content

Instantly share code, notes, and snippets.

@andrewodri
Last active December 24, 2021 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewodri/d356afd1030f2e42e330e0d153b3ea38 to your computer and use it in GitHub Desktop.
Save andrewodri/d356afd1030f2e42e330e0d153b3ea38 to your computer and use it in GitHub Desktop.
Allow WhatsApp Desktop to access OBS virtual camera by removing signatures
#!/bin/bash
cat > entitlements.xml << EOM
<?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>
EOM
sudo codesign --entitlements entitlements.xml -f -s - "/Applications/WhatsApp.app/" && \
sudo codesign --entitlements entitlements.xml -f -s - "/Applications/WhatsApp.app/Contents/Frameworks/WhatsApp Helper.app" && \
sudo codesign --entitlements entitlements.xml -f -s - "/Applications/WhatsApp.app/Contents/Frameworks/WhatsApp Helper (GPU).app" && \
sudo codesign --entitlements entitlements.xml -f -s - "/Applications/WhatsApp.app/Contents/Frameworks/WhatsApp Helper (Plugin).app" && \
sudo codesign --entitlements entitlements.xml -f -s - "/Applications/WhatsApp.app/Contents/Frameworks/WhatsApp Helper (Renderer).app"
rm entitlements.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment