Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reset access to contacts in iOS simulator?

I want to test out the contact authorization process, but the simulator doesn't ask me for permission anymore. I've tried resetting privacy settings, I've tried resetting the simulator completely, I've tried deleting the app, but no matter what, it never asks me for permission. It just assumes I've granted it.

I'm running iOS 6 simulator. There are a couple similar questions like this on SO, but surprisingly no decent answers. Is there really no way to do this?

like image 662
Snowman Avatar asked Nov 07 '12 19:11

Snowman


People also ask

How do you clear permissions in iOS?

Reset all privacy settings on iOS Go to Settings | General | Reset | Reset Location & Privacy. If prompted to confirm the settings change, enter your passcode to confirm. The device will reboot and clear out all databases that contain privacy permissions data for all apps currently installed on iOS-based devices.

How do I reset Xcode simulator?

You need to click on Simulator first. Hardware > Erase All Content and Settings. This will reset the simulator. Wait for a minute for the Simulator to rebuild.

How do you restart an app on iPhone simulator?

For closing (not quit) the running application in Simulator the keyboard shortcut is "shift+command+h".


3 Answers

Starting with iOS 7, go to Settings, General, Reset and tap Reset Location & Privacy

like image 57
laktak Avatar answered Oct 20 '22 13:10

laktak


The reset locations/privacy option ONLY works on a device. It doesn't work in the simulator.

Edit: This is no longer true, see laktak's answer.

like image 2
SafeFastExpressive Avatar answered Oct 20 '22 12:10

SafeFastExpressive


These instructions are for Xcode 6.

  1. Find the identifier of the simulator whose access settings you want to reset in Xcode's Devices window.

  2. Delete ~/Library/Developer/CoreSimulator/Devices/<device>/data/Library/TCC/TCC.db

  3. Relaunch the simulator. (Device > Restart in the simulator menu)

like image 2
s4y Avatar answered Oct 20 '22 14:10

s4y