- Home /
Build Error: Microphone class is used but Microphone Usage Description is empty
Hi there I'm trying to build my game for mac, it builds fine for windows but for mac I get these 2 errors:
Microphone class is used but Microphone Usage Description is empty. App will not work on macOS 10.14+.
Exception: A required capability description is not set.
I'm definitely not trying to access the microphone in my game. Does anyone know how to fix this? Please help
Answer by zauberzaubar · May 28, 2020 at 11:15 AM
You need to add a microphone usage description string in iOS Player Settings (which will be added to your Info.plist).
https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/requesting_authorization_for_media_capture_on_ios?language=objc https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW25
that fixed it. (searched for info.plist in my windows file manager). Now, if only I can figure out why my game thinks the microphone is being used in the first place!
Answer by jameslin101 · Dec 15, 2020 at 10:20 AM
@chaosmonger Under project settings - > player -> ios -> configuration -> microphone usage descritption
put something the the field,
under project settings -> player -> ios -> configuration -> Microphone Usage Description
put in anything
Thanks a lot. I had problems because I wasn't building for iOS, so I didn't have the iOS setting. I had then to download the iOS building package and I managed... Weird though, since I was simply building for $$anonymous$$acOS, no iOS.
Answer by chaosmonger · Dec 13, 2020 at 11:10 PM
Having the same issue... But I don't get how to solve it... Can someone explain the procedure better? Thanks
Your answer
Follow this Question
Related Questions
Using a PC to create a build for Mac OS X 5 Answers
How do I fill out the "Microphone Usage Description" for a Standalone macOS build? 0 Answers
Distribute terrain in zones 3 Answers
[ERROR ][Android Build] [5.3.4] Not able to build 1 Answer
Unity 2017.3.1f1 Cloud Build Deadlock with Unit Testing and .NET 4.6 1 Answer