obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

Code signing validation error when installing virtual camera on macOS

Open ringods opened this issue 1 year ago • 22 comments

Operating System Info

macOS 14

Other OS

No response

OBS Studio Version

30.2.2

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/YbHJAwvX3hRB66IK

OBS Studio Crash Log URL

No response

Expected Behavior

Pressing the Start Virtual Camera button should enable this function

Current Behavior

When I press the Start Virtual Camera button, I get a dialog that there was an error installing the virtual camera.

Screenshot 2024-07-24 at 16 04 19

Steps to Reproduce

  1. Launch OBS Studio v30.2.2
  2. Press Start Virtual Camera
  3. error dialog appears

Anything else we should know?

OBS Studio is installed via the Homebrew Cask:

https://github.com/Homebrew/homebrew-cask/blob/master/Casks/o/obs.rb

ringods avatar Jul 24 '24 14:07 ringods

I encountered a similar error trying to enable the virtual cam on macOS 14 (Sonoma) after updating to 30.2.2 today using OBS's built-in updater.

Screenshot 2024-07-24 at 11 24 15 AM

I tried flipping permissions off and on in System Settings, restarting OBS multiple times, and reviewing OBS's permissions, but none of that helped. The only thing that did resolve the issue for me was manually dragging OBS to the trash, confirming the dialog that warned it would remove a system extension, downloading and installing a fresh copy of OBS from obsproject.com, starting it up, and approving the system extension permissions again.

TLDR: Delete and reinstall OBS.

I guess something didn't actually update correctly from the auto-updater, but it's not clear to me. 🤷

infinitewarp avatar Jul 24 '24 15:07 infinitewarp

@infinitewarp Your issue (no virtual camera after updating) is almost certainly the same as #10381. As far as I know, it has nothing to do with the updater.

@ringods If this happened after an OBS Studio update, then this is a duplicate of #10381. If this happened on a fresh install of OBS Studio, then that may be #9912 or something different. Please let us know specifically how you installed OBS Studio 30.2.2.

RytoEX avatar Jul 24 '24 16:07 RytoEX

@RytoEX this indeed happened after an OBS Studio update. However, when I updated (via Homebrew) to v30.2.0, I got the error from #10381. Reinstalling from a download from the main website solved this for me.

Today, I had another update to v30.2.2 and got the error I reported. Given the other dialog, I have the impression it is something different. I leave that up to you as authors/developers of the product though.

ringods avatar Jul 24 '24 18:07 ringods

@ringods for clarity, is the issue you currently have after updating to 30.2.2 the error code 8 error, or the "not found" error? And exactly what method did you use to update (manual check for updates in-app, automatic in-app, homebrew, etc.)

If it is an error code 8, could you also please run the command systemextensionsctl list in the Terminal and reproduce the output here?

A system extension error code 8 indicates an invalid code signature or missing entitlements, so this is definitely distinct from the "not found" issue. I suspect installing from Homebrew has something to do with this but not able to say for sure until I have a chance to try to reproduce.

jcm93 avatar Jul 24 '24 19:07 jcm93

I updated via Homebrew on macOS and got the error code 8 message.

systemextensionsctl list
6 extension(s)
--- com.apple.system_extension.cmio
enabled	active	teamID	bundleID (version)	name	[state]
*	*	2MMRE5MTB8	com.obsproject.obs-studio.mac-camera-extension (30.2.1/10049553606)	com.obsproject.obs-studio.mac-camera-extension	  [activated enabled]
		2MMRE5MTB8	com.obsproject.obs-studio.mac-camera-extension (30.1.2/8576208847)	com.obsproject.obs-studio.mac-camera-extension	  [terminated waiting to uninstall on reboot]
		2MMRE5MTB8	com.obsproject.obs-studio.mac-camera-extension (30.2.0/9914953239)	com.obsproject.obs-studio.mac-camera-extension	  [terminated waiting to uninstall on reboot]

ringods avatar Jul 24 '24 19:07 ringods

Hmm. Can you check if this issue persists after restarting your machine?

jcm93 avatar Jul 24 '24 20:07 jcm93

@jcm93 That would be the same/similar as the log link posted in my initial message. I have this problem on both my M1 and Intel Mac.

I just rebooted my Intel Mac but the problem persists.

ringods avatar Jul 24 '24 20:07 ringods

@jcm93 That would be the same/similar as the log link posted in my initial message. I have this problem on both my M1 and Intel Mac.

Yes, apologies, I realized that and deleted my question before you replied.

I just rebooted my Intel Mac but the problem persists.

Now that you've rebooted, can you post the output of systemextensionsctl list one more time as well as a new log from OBS? If the error appears identical, please do post the log anyway just so that we can have complete information.

jcm93 avatar Jul 24 '24 20:07 jcm93

@jcm93 since the extensions list in my previous comment came from my M1 Mac, I also rebooted that machine. Here is the refreshed output:

--- com.apple.system_extension.cmio
enabled	active	teamID	bundleID (version)	name	[state]
*	*	2MMRE5MTB8	com.obsproject.obs-studio.mac-camera-extension (30.2.1/10049553606)	com.obsproject.obs-studio.mac-camera-extension	[activated enabled]

For completeness: also on my M1 Mac the problem persists after rebooting.

Log: https://obsproject.com/logs/uTyxmMk5jv1Fhm9v

ringods avatar Jul 24 '24 21:07 ringods

I get this issue where it wants me to accept a privacy issue but it doesn't exist in settings.

image

MrNobodyX3 avatar Aug 10 '24 03:08 MrNobodyX3

I encountered the same problem, which makes it impossible for us to use. When can this problem be fixed?

HellShuro avatar Aug 26 '24 08:08 HellShuro

我遇到这个问题,它希望我接受隐私问题,但它在设置中不存在。

图像

I have the same problem so what should i do to us virtual camera again?

zzzzz167 avatar Aug 27 '24 02:08 zzzzz167

I get this issue where it wants me to accept a privacy issue but it doesn't exist in settings.

image

@MrNobodyX3 I have the same problem as you When I use the systemextensionsctl list. It outputs the following information: image So it seems that this extension option has moved in some newer versions of the system and then I found the right spot and turned on the virtual camera at the System Settings > General > Login Items & Extensions > Camera Extensions. I'm not sure if this will work for the problems you're describing, but it's worth a try.

zzzzz167 avatar Aug 27 '24 14:08 zzzzz167

So it seems that this extension option has moved in some newer versions of the system and then I found the right spot and turned on the virtual camera at the System Settings > General > Login Items & Extensions > Camera Extensions. I'm not sure if this will work for the problems you're describing, but it's worth a try.

This did resolve my issue. Thank you so much.

MrNobodyX3 avatar Aug 29 '24 02:08 MrNobodyX3

@zzzzz167 I can't navigate to this path in the System Settings:

System Settings > General > Login Items & Extensions > Camera Extensions

Under General, I only have Login Items. But there is no trace of Camera Extensions. Am I missing something?

ringods avatar Sep 24 '24 19:09 ringods

System Settings > General > Login Items & Extensions > Camera Extension is the location under macOS 15.

System Settings > Privacy & Security > scroll down to Security is the location pre-macOS 15.

FWIW, I've tried to reproduce this error installing OBS with homebrew and subsequently updating, but could not. A system extension error code of 8 still indicates a real issue though, that we should try get to the bottom of.

I have heard one report via another channel that removing the ~/Library/Application Support/obs-studio directory resolved this issue. This did not make sense to me, but may nevertheless be worth a shot on your end if you are still seeing this specific error.

jcm93 avatar Sep 24 '24 19:09 jcm93

I have a similar problem, except in my case it's error 10 🤔

スクリーンショット 2024-11-08 14 53 47

el-hoshino avatar Nov 08 '24 05:11 el-hoshino

I have a similar problem

Image

jtprogru avatar Jan 29 '25 06:01 jtprogru

This issue doesn't seem to be able to be reproduced outside of Homebrew installations; the best guess at the moment is that it's an internal macOS issue. For affected users, the extension bundle signature is actually valid according to the system, and when queried, the system actually reports a correct and valid version of the extension being installed. macOS returns the signing validation error when loading the extension for unclear reasons.

Homebrew also isn't actually an official release channel for OBS and the formula isn't maintained by the project itself. This issue might receive more attention if anyone here runs into it with OBS installed via an official, supported release channel.

jcm93 avatar Jan 29 '25 07:01 jcm93

This problem solved after uninstall OBS from Homebrew and installing from DMG image downloaded from official site.

jtprogru avatar Jan 31 '25 12:01 jtprogru

~~Nope, nothing is fixing this issue for me.~~

  • I tried removing OBS,
  • I tried re-installing it from scratch (downloading from the website),
  • I tried removing ~/Library/Application Support/obs-studio.
  • I tried rebooting the computer.
  • I checked all the permissions
  • I tried sudo cp -R /Applications/OBS.app/Contents/Resources/obs-mac-virtualcam.plugin /Library/CoreMediaIO/Plug-Ins/DAL/ - because that folder is empty, and I thought I need to copy it there.
  • I tried sudo codesign --remove-signature /Library/CoreMediaIO/Plug-Ins/DAL/obs-mac-virtualcam.plugin/Contents/MacOS/obs-mac-virtualcam

None of that has helped and I can't figure it out. OBS 31.1.2 (64 bit). Sequoia on M1 Mac.


Oh, okay. I figured it out. I did this:

sudo spctl --master-disable

and it told me to:

"Globally disabling the assessment system needs to be confirmed in System Settings."

I'm not even sure I had to run that command, I think I could've just gone here:

Image

Then "Start Virtual Camera" installs the plugin that needs to be enabled in General -> Login Items & Extensions -> Camera Extensions. And I had to restart OBS and it worked.

agzam avatar Sep 10 '25 19:09 agzam