Microphone Usage Description is empty

I’m on Windows and i’m trying to build a Mac app but i have this:

Microphone class is used but Microphone Usage Description is empty. App will not work on macOS 10.14+.
UnityEditor.OSXStandalone.OSXDesktopStandalonePostProcessor:RenameFilesInStagingArea(BuildPostProcessArgs)
DesktopStandalonePostProcessor:SetupStagingArea(BuildPostProcessArgs, HashSet`1)
DesktopStandalonePostProcessor:PostProcess(BuildPostProcessArgs)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

I have no “Microphone Usage Description” in project settings → player.

Can you report a bug on this? This should show up in the player settings.

As for a workaround, you can set it using an editor script via reflection:

var descriptionProperty = typeof(UnityEditor.PlayerSettings.macOS).GetProperty("microphoneUsageDescription", BindingFlags.NonPublic | BindingFlags.Static);
descriptionProperty.SetValue(null, "This is my description");
1 Like