MacOS Build Fail
The whole answer can be found below.
Try Our
Documentation
Please check if you can find an answer in our extensive documentation on Voice.
Join Us
on Discord
Meet and talk to our staff and the entire Photon-Community via Discord.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
MacOS Build Fail: Microphone Usage Description is empty
NetworkingWorker
2021-01-14 23:08:05
Hi, I am a bit new to Photon have built a simple FPS with voice chat, which works great every time for Windows, but when I try to build a version for mac I get the two errors:
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&)
and
Exception: A required capability description is not set.
UnityEditor.OSXStandalone.OSXDesktopStandalonePostProcessor.UpdateInfoPlist (UnityEditor.Modules.BuildPostProcessArgs args, System.String path, System.String executableName) (at /Users/bokken/buildslave/unity/build/PlatformDependent/OSXPlayer/Extensions/Managed/OSXDesktopStandalonePostProcessor.cs:236
Comments
NetworkingWorker
2021-01-14 23:08:51
If you need any other info about the errors please feel free to ask.
Hi @NetworkingWorker,
Thank you for choosing Photon!
NetworkingWorker
2021-01-15 16:56:20
Thank you. looking at the page you directed me to I have found it says:
"You need to add a "Microphone Usage Description" to your project's "Player Settings" under "Other Settings" -> "Configuration" section. This ensures that NSMicrophoneUsageDescription is added to the plist in the macOS application bundle package Contents. You could also modify that manually if you wish."
For some reason I have not been able to find the Microphone Usage Description field in unity. I am using Unity 2020.1.11f1 on a Windows computer. To build for mac should I use a Mac computer?
NetworkingWorker
2021-01-15 16:56:35
Thank you for your help.
@NetworkingWorker wrote: »
Thank you for your help.
Did you get it working?
Hi @Volfase,
Could you tell us why it's not working for you and what you have tried so far?
Maybe share description of the issue, Photon Voice version, Unity version, macOS version, etc.
@NetworkingWorker wrote: »
Thank you. looking at the page you directed me to I have found it says:
"You need to add a "Microphone Usage Description" to your project's "Player Settings" under "Other Settings" -> "Configuration" section. This ensures that NSMicrophoneUsageDescription is added to the plist in the macOS application bundle package Contents. You could also modify that manually if you wish."
For some reason I have not been able to find the Microphone Usage Description field in unity. I am using Unity 2020.1.11f1 on a Windows computer. To build for mac should I use a Mac computer?
I got this experience too. I only found the place to set NSMicrophoneUsageDescription on MacBook, but it's not on Windows. Maybe @NetworkingWorker has another way to do it.
Back to top