iOS Simulator would like to access microphone every time

后端 未结 8 906
忘掉有多难
忘掉有多难 2020-12-24 04:55

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

\"\" would like to access the microphone.

8条回答
  •  伪装坚强ぢ
    2020-12-24 05:39

    This has been resolved in Xcode 10.2 Beta. Installing the beta should also fix it for older Xcode versions since CoreSimulator.framework will be upgraded (and remains backwards-compatible with older Xcodes).

    The new behavior prompts for Microphone access once on your Mac. That approval (or denial) covers all processes in all Simulator runtimes including new runtimes downloaded and new Xcodes installed after the initial approval prompt.

    The normal TCC rules continue to apply inside Simulator. Your app must have the relevant Info.plist keys with a microphone usage description if you actually attempt to record audio. This will continue to generate an iOS TCC prompt inside that specific Simulator. If your app only plays audio then no TCC prompts will be generated by iOS.

提交回复
热议问题