Repeated request for microphone permission on iPhone Simulator












12















I'm working with Xcode 10.1 (10B61) on an app that needs permission to use the microphone.
(Almost) Every time I start the app from Xcode (in simulator) I get a system popup:




"Appname" would like to access the microphone
"Privacy - Microphone Usage Description"">




It doesn't matter if I select "Don't Allow" or "OK". This message keeps popping up.
How can I fix it?










share|improve this question























  • I'm having the same problem after updating to Xcode 10.1 (10B61). It's driving me batty.

    – cmilr
    Nov 23 '18 at 5:08











  • More specifically, the Simulator doesn't remember that you once granted access to these resources (not just the Microphone, but Photos, network, etc.) This is tedious.

    – jhhl
    Nov 29 '18 at 17:59











  • What is more concerning is if AdMob listening to the Microphone on the real device. Are they selling the captured audio to advertisement companies?

    – Houman
    Dec 28 '18 at 8:53
















12















I'm working with Xcode 10.1 (10B61) on an app that needs permission to use the microphone.
(Almost) Every time I start the app from Xcode (in simulator) I get a system popup:




"Appname" would like to access the microphone
"Privacy - Microphone Usage Description"">




It doesn't matter if I select "Don't Allow" or "OK". This message keeps popping up.
How can I fix it?










share|improve this question























  • I'm having the same problem after updating to Xcode 10.1 (10B61). It's driving me batty.

    – cmilr
    Nov 23 '18 at 5:08











  • More specifically, the Simulator doesn't remember that you once granted access to these resources (not just the Microphone, but Photos, network, etc.) This is tedious.

    – jhhl
    Nov 29 '18 at 17:59











  • What is more concerning is if AdMob listening to the Microphone on the real device. Are they selling the captured audio to advertisement companies?

    – Houman
    Dec 28 '18 at 8:53














12












12








12


3






I'm working with Xcode 10.1 (10B61) on an app that needs permission to use the microphone.
(Almost) Every time I start the app from Xcode (in simulator) I get a system popup:




"Appname" would like to access the microphone
"Privacy - Microphone Usage Description"">




It doesn't matter if I select "Don't Allow" or "OK". This message keeps popping up.
How can I fix it?










share|improve this question














I'm working with Xcode 10.1 (10B61) on an app that needs permission to use the microphone.
(Almost) Every time I start the app from Xcode (in simulator) I get a system popup:




"Appname" would like to access the microphone
"Privacy - Microphone Usage Description"">




It doesn't matter if I select "Don't Allow" or "OK". This message keeps popping up.
How can I fix it?







xcode ios-simulator






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 22 '18 at 14:08









benrudhartbenrudhart

4181416




4181416













  • I'm having the same problem after updating to Xcode 10.1 (10B61). It's driving me batty.

    – cmilr
    Nov 23 '18 at 5:08











  • More specifically, the Simulator doesn't remember that you once granted access to these resources (not just the Microphone, but Photos, network, etc.) This is tedious.

    – jhhl
    Nov 29 '18 at 17:59











  • What is more concerning is if AdMob listening to the Microphone on the real device. Are they selling the captured audio to advertisement companies?

    – Houman
    Dec 28 '18 at 8:53



















  • I'm having the same problem after updating to Xcode 10.1 (10B61). It's driving me batty.

    – cmilr
    Nov 23 '18 at 5:08











  • More specifically, the Simulator doesn't remember that you once granted access to these resources (not just the Microphone, but Photos, network, etc.) This is tedious.

    – jhhl
    Nov 29 '18 at 17:59











  • What is more concerning is if AdMob listening to the Microphone on the real device. Are they selling the captured audio to advertisement companies?

    – Houman
    Dec 28 '18 at 8:53

















I'm having the same problem after updating to Xcode 10.1 (10B61). It's driving me batty.

– cmilr
Nov 23 '18 at 5:08





I'm having the same problem after updating to Xcode 10.1 (10B61). It's driving me batty.

– cmilr
Nov 23 '18 at 5:08













More specifically, the Simulator doesn't remember that you once granted access to these resources (not just the Microphone, but Photos, network, etc.) This is tedious.

– jhhl
Nov 29 '18 at 17:59





More specifically, the Simulator doesn't remember that you once granted access to these resources (not just the Microphone, but Photos, network, etc.) This is tedious.

– jhhl
Nov 29 '18 at 17:59













What is more concerning is if AdMob listening to the Microphone on the real device. Are they selling the captured audio to advertisement companies?

– Houman
Dec 28 '18 at 8:53





What is more concerning is if AdMob listening to the Microphone on the real device. Are they selling the captured audio to advertisement companies?

– Houman
Dec 28 '18 at 8:53












4 Answers
4






active

oldest

votes


















1














After looking for a workaround this one seems to fix it for me:
In Simulator go to Settings > Your App > Disable the Microphone Access



Update:
Not solving this issue but might be helpful:
You can dismiss the popup via Esc key - that should be way faster than clicking a button






share|improve this answer


























  • That isn’t in the Settings app for me (I am using iPad 2, since I still support iOS 9).

    – David Dunham
    Dec 18 '18 at 17:52











  • @DavidDunham I also had that issue once. Did you try deleting the app and or if that doesn't help reseting the simulator?

    – benrudhart
    Dec 19 '18 at 9:14



















1














You can get rid of this following this steps:




  1. Go to "Security & Privacy" Settings on macOS.

  2. Select "Microphone" on the left panel.

  3. Uncheck the Xcode option on the right panel.






share|improve this answer
























  • This didn't work for me. I have Xcode unchecked and still get the popup. Even restarted everything for good measure and verified the option is still unchecked.

    – ToddH
    Jan 10 at 19:33





















0














Another work around is to check if the app is running in the simulator and disable the audio code:



struct Platform {
static var isSimulator: Bool {
return TARGET_OS_SIMULATOR != 0
}
}





share|improve this answer































    0














    Edit:



    Unfortunately it looks like the following procedure is just a temporary fix. After some time the dialog started appearing again. Repeating the procedure fixes it for an additional period of time.





    I had the same problem and what helped in my case was disabling and then re-enabling microphone permissions in the the Simulator.



    Steps to fix:




    • go to Settings app in the Simulator

    • find your app settings page within the Settings app

    • disable microphone permission (or any other permission that is causing trouble)

    • re-enable microphone permissions


    After this procedure, the microphone permissions dialog stopped appearing every time I would run the app.



    Note that I did run the app with the permissions disabled and navigated to the point where permissions are required before re-enabling them (but I don't think that's required).



    Hope this helps, it did in my case.






    share|improve this answer

























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53432769%2frepeated-request-for-microphone-permission-on-iphone-simulator%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      After looking for a workaround this one seems to fix it for me:
      In Simulator go to Settings > Your App > Disable the Microphone Access



      Update:
      Not solving this issue but might be helpful:
      You can dismiss the popup via Esc key - that should be way faster than clicking a button






      share|improve this answer


























      • That isn’t in the Settings app for me (I am using iPad 2, since I still support iOS 9).

        – David Dunham
        Dec 18 '18 at 17:52











      • @DavidDunham I also had that issue once. Did you try deleting the app and or if that doesn't help reseting the simulator?

        – benrudhart
        Dec 19 '18 at 9:14
















      1














      After looking for a workaround this one seems to fix it for me:
      In Simulator go to Settings > Your App > Disable the Microphone Access



      Update:
      Not solving this issue but might be helpful:
      You can dismiss the popup via Esc key - that should be way faster than clicking a button






      share|improve this answer


























      • That isn’t in the Settings app for me (I am using iPad 2, since I still support iOS 9).

        – David Dunham
        Dec 18 '18 at 17:52











      • @DavidDunham I also had that issue once. Did you try deleting the app and or if that doesn't help reseting the simulator?

        – benrudhart
        Dec 19 '18 at 9:14














      1












      1








      1







      After looking for a workaround this one seems to fix it for me:
      In Simulator go to Settings > Your App > Disable the Microphone Access



      Update:
      Not solving this issue but might be helpful:
      You can dismiss the popup via Esc key - that should be way faster than clicking a button






      share|improve this answer















      After looking for a workaround this one seems to fix it for me:
      In Simulator go to Settings > Your App > Disable the Microphone Access



      Update:
      Not solving this issue but might be helpful:
      You can dismiss the popup via Esc key - that should be way faster than clicking a button







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Dec 18 '18 at 8:54

























      answered Nov 26 '18 at 14:54









      benrudhartbenrudhart

      4181416




      4181416













      • That isn’t in the Settings app for me (I am using iPad 2, since I still support iOS 9).

        – David Dunham
        Dec 18 '18 at 17:52











      • @DavidDunham I also had that issue once. Did you try deleting the app and or if that doesn't help reseting the simulator?

        – benrudhart
        Dec 19 '18 at 9:14



















      • That isn’t in the Settings app for me (I am using iPad 2, since I still support iOS 9).

        – David Dunham
        Dec 18 '18 at 17:52











      • @DavidDunham I also had that issue once. Did you try deleting the app and or if that doesn't help reseting the simulator?

        – benrudhart
        Dec 19 '18 at 9:14

















      That isn’t in the Settings app for me (I am using iPad 2, since I still support iOS 9).

      – David Dunham
      Dec 18 '18 at 17:52





      That isn’t in the Settings app for me (I am using iPad 2, since I still support iOS 9).

      – David Dunham
      Dec 18 '18 at 17:52













      @DavidDunham I also had that issue once. Did you try deleting the app and or if that doesn't help reseting the simulator?

      – benrudhart
      Dec 19 '18 at 9:14





      @DavidDunham I also had that issue once. Did you try deleting the app and or if that doesn't help reseting the simulator?

      – benrudhart
      Dec 19 '18 at 9:14













      1














      You can get rid of this following this steps:




      1. Go to "Security & Privacy" Settings on macOS.

      2. Select "Microphone" on the left panel.

      3. Uncheck the Xcode option on the right panel.






      share|improve this answer
























      • This didn't work for me. I have Xcode unchecked and still get the popup. Even restarted everything for good measure and verified the option is still unchecked.

        – ToddH
        Jan 10 at 19:33


















      1














      You can get rid of this following this steps:




      1. Go to "Security & Privacy" Settings on macOS.

      2. Select "Microphone" on the left panel.

      3. Uncheck the Xcode option on the right panel.






      share|improve this answer
























      • This didn't work for me. I have Xcode unchecked and still get the popup. Even restarted everything for good measure and verified the option is still unchecked.

        – ToddH
        Jan 10 at 19:33
















      1












      1








      1







      You can get rid of this following this steps:




      1. Go to "Security & Privacy" Settings on macOS.

      2. Select "Microphone" on the left panel.

      3. Uncheck the Xcode option on the right panel.






      share|improve this answer













      You can get rid of this following this steps:




      1. Go to "Security & Privacy" Settings on macOS.

      2. Select "Microphone" on the left panel.

      3. Uncheck the Xcode option on the right panel.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Jan 3 at 9:24









      jherranjherran

      2,43562542




      2,43562542













      • This didn't work for me. I have Xcode unchecked and still get the popup. Even restarted everything for good measure and verified the option is still unchecked.

        – ToddH
        Jan 10 at 19:33





















      • This didn't work for me. I have Xcode unchecked and still get the popup. Even restarted everything for good measure and verified the option is still unchecked.

        – ToddH
        Jan 10 at 19:33



















      This didn't work for me. I have Xcode unchecked and still get the popup. Even restarted everything for good measure and verified the option is still unchecked.

      – ToddH
      Jan 10 at 19:33







      This didn't work for me. I have Xcode unchecked and still get the popup. Even restarted everything for good measure and verified the option is still unchecked.

      – ToddH
      Jan 10 at 19:33













      0














      Another work around is to check if the app is running in the simulator and disable the audio code:



      struct Platform {
      static var isSimulator: Bool {
      return TARGET_OS_SIMULATOR != 0
      }
      }





      share|improve this answer




























        0














        Another work around is to check if the app is running in the simulator and disable the audio code:



        struct Platform {
        static var isSimulator: Bool {
        return TARGET_OS_SIMULATOR != 0
        }
        }





        share|improve this answer


























          0












          0








          0







          Another work around is to check if the app is running in the simulator and disable the audio code:



          struct Platform {
          static var isSimulator: Bool {
          return TARGET_OS_SIMULATOR != 0
          }
          }





          share|improve this answer













          Another work around is to check if the app is running in the simulator and disable the audio code:



          struct Platform {
          static var isSimulator: Bool {
          return TARGET_OS_SIMULATOR != 0
          }
          }






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 30 '18 at 23:23









          richyrichy

          1,83212135




          1,83212135























              0














              Edit:



              Unfortunately it looks like the following procedure is just a temporary fix. After some time the dialog started appearing again. Repeating the procedure fixes it for an additional period of time.





              I had the same problem and what helped in my case was disabling and then re-enabling microphone permissions in the the Simulator.



              Steps to fix:




              • go to Settings app in the Simulator

              • find your app settings page within the Settings app

              • disable microphone permission (or any other permission that is causing trouble)

              • re-enable microphone permissions


              After this procedure, the microphone permissions dialog stopped appearing every time I would run the app.



              Note that I did run the app with the permissions disabled and navigated to the point where permissions are required before re-enabling them (but I don't think that's required).



              Hope this helps, it did in my case.






              share|improve this answer






























                0














                Edit:



                Unfortunately it looks like the following procedure is just a temporary fix. After some time the dialog started appearing again. Repeating the procedure fixes it for an additional period of time.





                I had the same problem and what helped in my case was disabling and then re-enabling microphone permissions in the the Simulator.



                Steps to fix:




                • go to Settings app in the Simulator

                • find your app settings page within the Settings app

                • disable microphone permission (or any other permission that is causing trouble)

                • re-enable microphone permissions


                After this procedure, the microphone permissions dialog stopped appearing every time I would run the app.



                Note that I did run the app with the permissions disabled and navigated to the point where permissions are required before re-enabling them (but I don't think that's required).



                Hope this helps, it did in my case.






                share|improve this answer




























                  0












                  0








                  0







                  Edit:



                  Unfortunately it looks like the following procedure is just a temporary fix. After some time the dialog started appearing again. Repeating the procedure fixes it for an additional period of time.





                  I had the same problem and what helped in my case was disabling and then re-enabling microphone permissions in the the Simulator.



                  Steps to fix:




                  • go to Settings app in the Simulator

                  • find your app settings page within the Settings app

                  • disable microphone permission (or any other permission that is causing trouble)

                  • re-enable microphone permissions


                  After this procedure, the microphone permissions dialog stopped appearing every time I would run the app.



                  Note that I did run the app with the permissions disabled and navigated to the point where permissions are required before re-enabling them (but I don't think that's required).



                  Hope this helps, it did in my case.






                  share|improve this answer















                  Edit:



                  Unfortunately it looks like the following procedure is just a temporary fix. After some time the dialog started appearing again. Repeating the procedure fixes it for an additional period of time.





                  I had the same problem and what helped in my case was disabling and then re-enabling microphone permissions in the the Simulator.



                  Steps to fix:




                  • go to Settings app in the Simulator

                  • find your app settings page within the Settings app

                  • disable microphone permission (or any other permission that is causing trouble)

                  • re-enable microphone permissions


                  After this procedure, the microphone permissions dialog stopped appearing every time I would run the app.



                  Note that I did run the app with the permissions disabled and navigated to the point where permissions are required before re-enabling them (but I don't think that's required).



                  Hope this helps, it did in my case.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Dec 12 '18 at 14:18

























                  answered Dec 12 '18 at 13:27









                  Crt GregoricCrt Gregoric

                  585




                  585






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53432769%2frepeated-request-for-microphone-permission-on-iphone-simulator%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      404 Error Contact Form 7 ajax form submitting

                      How to know if a Active Directory user can login interactively

                      Refactoring coordinates for Minecraft Pi buildings written in Python