Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updated to Xcode 10.1, now my app is asking for microphone permission?

Tags:

xcode

I updated to Xcode 10.1 (10B61) yesterday, and now my app, which doesn't use the microphone at all, is suddenly asking for microphone permission in the simulator. Haven't had a chance to try it on device.

Any ideas what's going on?

like image 727
cmilr Avatar asked Nov 23 '18 22:11

cmilr


People also ask

Why do apps want access to my microphone?

The only reason the app needs this is to detect when other apps are using sensors on your device. The app doesn't access your microphone or camera. If you're not taken to your Accessibility settings, follow the instructions below: Open “Settings” on your device.

How do I give microphone permission on iPad?

Go to Settings > Privacy. Tap a hardware feature, such as Camera, Bluetooth, Local Network, or Microphone.


2 Answers

I've the same problem. Have you implemented the siri shortcuts?

edit: from apple:

On macOS 10.14, Simulator might prompt for Microphone access at launch or when first interacting with the microphone in a simulator (for example, by using Siri). If you decline permissions, simulator audio sessions will not be able to use audio input of any kind, regardless of the permissions granted inside a simulator. Use the macOS System Preferences, Security & Privacy preference pane to change this setting.

Your application must still be granted Microphone permission inside the simulator as well. macOS applies its permission policy to Simulator application as a whole, across all simulator runtime versions and all applications inside a simulator. Each simulator applies permission policies to individual applications just like devices. (40113388)

like image 109
Fast Avatar answered Oct 11 '22 02:10

Fast


This is absolutely normal.

The SIMULATOR is itself a MacOS application, and as a MacOS application, it needs permission to use the MacOS microphone. That has nothing to do with your iOS app running on the simulator, which might or might not need permission to use the simulated microphone.

Give the simulator permission to access the MacOS microphone and you're fine.

like image 25
gnasher729 Avatar answered Oct 11 '22 03:10

gnasher729