title: iOS Simulator crashes on microphone permission request
body: <p>My environment:</p>
  
  <ul>
  <li>permission_handler 3.0.0</li>
  <li>Flutter v1.2.1</li>
  <li>OSX High Sierra 10.13.6</li>
  <li>Xcode version 10.1.</li>
  </ul>
  
  <p>My app is crashing when I request the permission for microphone in the iOS simulator.</p>
  
  <pre class="lang-dart prettyprint-override"><code>PermissionStatus mic = await PermissionHandler()
      .checkPermissionStatus(PermissionGroup.microphone);
  print('microphone permission? ${mic.toString()}');
  try {
      if (mic != PermissionStatus.granted) {
          await PermissionHandler().requestPermissions([PermissionGroup.microphone]);
      }
  } catch (e) {
      print(e);
  }
  </code></pre>
  
  <p>No error is thrown or caught, but in the flutter debug console, I see:</p>
  
  <pre class="lang-none prettyprint-override"><code>flutter: microphone permission? PermissionStatus.unknown
  Lost connection to device.
  </code></pre>
  
  <p>This means that <code>checkPermissionStatus()</code> returned <code>unknown</code>. But then when I request the permission, the application crashes. I have not been able to try this on a real iPhone. Everything works perfectly on the Android simulator.</p>
  
  <p>I've seen there were some problems in Xcode 10.1 with the microphone:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/53285441/ios-simulator-would-like-to-access-microphone-every-time">iOS Simulator would like to access microphone every time</a></li>
  <li><a href="https://stackoverflow.com/questions/53432769/repeated-request-for-microphone-permission-on-ios-simulator">Repeated request for microphone permission on iOS Simulator</a></li>
  </ul>
  
  <p><strong>What I've tried</strong></p>
  
  <ul>
  <li>Fresh build with <code>flutter clean</code></li>
  <li>Changing the simulator microphone input in Hardware > Audio Input</li>
  </ul>
  
  <p>I could try to upgrade to Xcode 10.2, but I'd need to get mojave first. Trying to avoid that if possible as it might not even fix the issue. I can also try using a real iPhone device instead of the simulator. Would love to get the simulator not crashing, though.</p>
  
  <p>Is anyone able to grant microphone permission in Xcode <code>10.1</code>/<code>10.2</code> simulator using <code>permission_handler: 3.0.0</code>? What about another flutter permission plugin?</p>