并且不显示权限警报对话框

并且不显示权限警报对话框

本文介绍了iOS模拟器权限被拒绝,并且不显示权限警报对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用iOS模拟器,并且遇到了请求权限的问题.

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

我的应用程序运行正常,可以访问照片库,相机和位置服务.但是在安装了新的XCode(8.1)之后,我在模拟器上运行了该应用程序,该应用程序再也无法使用照片库或相机或定位服务.

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.

推荐答案

我发现了问题.这是因为您的Xcode不在应用程序"文件夹中.将Xcode移至该文件夹即可使用.

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

这篇关于iOS模拟器权限被拒绝,并且不显示权限警报对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 17:49