iOS, Mohave and video/audio playback - microphone permission


There’s an issue with iOS development of apps that play back video. When running an app in the simulator and that app plays media, the OS asks the user for “microphone” permission.
See here:

According to the linked discussion, this is fixed in Xcode 10.2 beta. However, according to the release notes for the beta, “You’re now only prompted once to authorize microphone access to all simulator devices. (45715977)”. This is good for development, but when running tests on Travis every time is the first time.