Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS simulator permission denied and not showing permission alert dialog

I'm working on iOS simulator and am facing issues for requesting permissions.

My app was working properly and it could access to photo library, camera and location service. But after installing new XCode (8.1), I run the app on simulator, the app is not allowed to use photo library or camera or location service any more.

I tried to ask the permission programmatically, but it did not show permission request dialog and always return denied status even though I added the privacy descriptions and bundle display name.

like image 709
Castor Avatar asked Nov 02 '16 18:11

Castor


1 Answers

I found the issue. This is because your Xcode is not put in Applications folder. Move Xcode to this folder and enjoy.

like image 73
Luthor Nguyen Avatar answered Sep 22 '22 07:09

Luthor Nguyen