From 894eb31a5f676525a7c12fd3fa69b1993aac4a17 Mon Sep 17 00:00:00 2001
From: osy <50960678+osy@users.noreply.github.com>
Date: Mon, 1 Aug 2022 17:15:47 -0700
Subject: [PATCH] macOS: enable microphone capture
Fixes #219
---
Platform/iOS/Info.plist | 2 +-
Platform/macOS/Info.plist | 2 ++
Platform/macOS/macOS-unsigned.entitlements | 6 ++++--
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/Platform/iOS/Info.plist b/Platform/iOS/Info.plist
index f33305736..16b06eab9 100644
--- a/Platform/iOS/Info.plist
+++ b/Platform/iOS/Info.plist
@@ -72,7 +72,7 @@
NSLocationWhenInUseUsageDescription
VM background access requires location services. Location data will never leave the device.
NSMicrophoneUsageDescription
- VM needs access to microphone.
+ Permission is required for any virtual machine to record from the microphone.
UIApplicationSupportsIndirectInputEvents
UIBackgroundModes
diff --git a/Platform/macOS/Info.plist b/Platform/macOS/Info.plist
index d57556e0c..a0494c083 100644
--- a/Platform/macOS/Info.plist
+++ b/Platform/macOS/Info.plist
@@ -85,5 +85,7 @@
$(TeamIdentifierPrefix:default=invalid.)$(PRODUCT_BUNDLE_PREFIX:default=com.utmapp).UTM
HelperIdentifier
$(PRODUCT_BUNDLE_PREFIX:default=com.utmapp).QEMUHelper
+ NSMicrophoneUsageDescription
+ Permission is required for any virtual machine to record from the microphone.
diff --git a/Platform/macOS/macOS-unsigned.entitlements b/Platform/macOS/macOS-unsigned.entitlements
index 6f6c82b79..216c2ec76 100644
--- a/Platform/macOS/macOS-unsigned.entitlements
+++ b/Platform/macOS/macOS-unsigned.entitlements
@@ -4,10 +4,12 @@
com.apple.security.app-sandbox
- com.apple.security.device.usb
-
com.apple.security.cs.disable-library-validation
+ com.apple.security.device.audio-input
+
+ com.apple.security.device.usb
+
com.apple.security.files.user-selected.read-write
com.apple.security.network.client