Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Simulator would like to access microphone every time

Since the update to macOS Mojave, I get this alert every time I run on the simulator:

"<AppName>" would like to access the microphone.

It is stopping the simulator from running! How can I stop it?

Mojave security alert!

like image 296
Udi Levy Avatar asked Nov 13 '18 16:11

Udi Levy


People also ask

How do I turn on voice over in simulation?

To do this, set keyboard focus on the simulator window then enable VoiceOver. From here you'll be able to use the Virtual Cursor to move between items on the screen. In order to interact with clickable items in the app, use the VO + Space key.

How do I lock my iPhone simulator?

Yep. In the menu bar when you've got the iOS Simulator open, Click Hardware -> Lock. Note that this looks slightly different than actually sleeping the phone (it keeps the "slide to unlock" screen running), but achieves the same effect. You can also do other nifty things like rotate the device and hit the home button.


Video Answer


2 Answers

What worked for me was to change the Hardware Audio Input to Internal Microphone. What I believe happen is that when you give access it changes the audio input to your headphones or macbook. My concern was that I am watching a tutorial and it keeps changing the audio frequency and it kept bothering me.

Internal Microphone

like image 169
Roger Perez Avatar answered Oct 07 '22 19:10

Roger Perez


My app does not use microphone, it only plays videos. I was able to fix the alert popup by restricting Microphone access for Xcode in Security & Privacy -> Microphone

like image 11
medvedNick Avatar answered Oct 07 '22 19:10

medvedNick