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
<span style="color:#31353b"><span style="color:#393318"><code><span style="color:#2b91af">Key</span> <span style="color:#303336">:</span> <span style="color:#2b91af">Privacy</span> <span style="color:#303336">-</span> <span style="color:#2b91af">Microphone</span> <span style="color:#2b91af">Usage</span> <span style="color:#2b91af">Description</span>
<span style="color:#2b91af">Value</span> <span style="color:#303336">:</span><span style="color:#303336"> $</span><span style="color:#303336">(</span><span style="color:#303336">PRODUCT_NAME</span><span style="color:#303336">)</span><span style="color:#303336"> microphone </span><span style="color:#101094">use</span></code></span></span>
Camera :
<span style="color:#31353b"><span style="color:#393318"><code><span style="color:#2b91af">Key</span> <span style="color:#303336">:</span> <span style="color:#2b91af">Privacy</span> <span style="color:#303336">-</span> <span style="color:#2b91af">Camera</span> <span style="color:#2b91af">Usage</span> <span style="color:#2b91af">Description</span>
<span style="color:#2b91af">Value</span> <span style="color:#303336">:</span><span style="color:#303336"> $</span><span style="color:#303336">(</span><span style="color:#303336">PRODUCT_NAME</span><span style="color:#303336">)</span><span style="color:#303336"> camera </span><span style="color:#101094">use</span></code></span></span>
Info.plist
<key>NSCameraUsageDescription < / key >
<string>$(PRODUCT_NAME) camera use< / string >
<key>NSMicrophoneUsageDescription < / key >
<string>$(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