Skip to content

Instantly share code, notes, and snippets.

@hgross
Created April 22, 2021 09:26
Show Gist options
  • Save hgross/80488c45718cba094eb917b6158f91a5 to your computer and use it in GitHub Desktop.
Save hgross/80488c45718cba094eb917b6158f91a5 to your computer and use it in GitHub Desktop.
Manipulate MS Teams code signing on Mac OS to use a (non-internal) webcam in Teams
#!/bin/bash
MS_TEAMS_PATH="/Applications/Microsoft\ Teams.app"
echo "Going to remove the MS teams signature from MS teams to allow detection by the MS Teams CoreMediaIO plugin ..."
echo "See https://answers.microsoft.com/en-us/msteams/forum/msteams_tfb-msteams_tfmac/microsoft-teams-mac-os-client-is-not-recognizing/d9e863be-d9a4-4d03-a4b8-1b5c7df58828 for details."
echo "Expecting xcode-select --install has been executed after the latest major MacOS update ..."
sudo codesign --remove-signature "/Applications/Microsoft Teams.app" &&\
sudo codesign --remove-signature "/Applications/Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper.app" &&\
sudo codesign --remove-signature "/Applications/Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper (GPU).app" &&\
sudo codesign --remove-signature "/Applications/Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper (Plugin).app" &&\
sudo codesign --remove-signature "/Applications/Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper (Renderer).app" && \
echo "Done. Restart MS Teams and check if it works."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment