MacOS Mojave 摄像头和麦克风权限

MacOS Mojave

1. 遇到了如下问题。

CMIO_Unit_ScopeElement.h:200:SafeGetElement Throwing err: -67454

CMIOUnitFigBaseObjectImpl.c:246:CMIOUnitCreateFromDescription Invalid paramater

CMIO_Unit_Input_Device.cpp:244:GetPropertyInfo CMIOUInputFromProcs::GetPropertyInfo() failed for id 102, Error: -67456

CMIOHardware.cpp:339:CMIOObjectGetPropertyData the System is exiting

CMIO_DALA_System.cpp:264:GetPropertyData error 1970171760 (unop) getting property selector (inot) scope (glob) element 0

 

A:

0.1

I have encountered the same error after update to macOS 10.14(Mojave).

I used otool to debug, got this : mac os error

These file reported on picture is from :/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreMediaIO.framework


after update iterm to "Build 3.2.4beta1", the "privacy problem" solved

 

0.2  Xcode 

0.2.1 权限

Microphone

Key    :  Privacy - Microphone Usage Description    
Value  :  $(PRODUCT_NAME) microphone use

Camera :

Key    :  Privacy - Camera Usage Description   
Value  :  $(PRODUCT_NAME) camera use

 

Info.plist

NSCameraUsageDescription < / key >

$(PRODUCT_NAME) camera use< / string >

NSMicrophoneUsageDescription < / key >

$(PRODUCT_NAME) microphone use< / string >

 

0.3 设置权限

0.3.1 click on "Security & Privacy", select "Camera" (or "Microphone") and click the checkbox

0.3.2 使用命令行 tccutil 。 

You can however reset the entire camera and microphone access list by issuing the following commands in the Terminal: tccutil reset Camera and tccutil reset Microphone

 

重置摄像头访问: tccutil reset Camera    

重置麦克风访问: tccutil reset Microphone



 

你可能感兴趣的:(video)