MacOS Build Fail

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

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).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

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.

JohnTube
2021-01-15 11:04:43

Hi @NetworkingWorker,

Thank you for choosing Photon!

Read here.

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.

Volfase
2021-04-20 18:38:12

@NetworkingWorker wrote: »

Thank you for your help.

Did you get it working?

JohnTube
2021-04-23 10:59:59

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.

Danhua
2021-05-05 01:30:45

@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