ABAddressBookGetAuthorizationStatus在模拟器总是返回kABAuthorizationStatusAuthorized [英] ABAddressBookGetAuthorizationStatus in simulator always returns kABAuthorizationStatusAuthorized

查看:457
本文介绍了ABAddressBookGetAuthorizationStatus在模拟器总是返回kABAuthorizationStatusAuthorized的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更新了iOS 6的地址簿授权的应用程序,并纷纷创出测试的一个问题。该模拟器始终返回授权不得。这意味着我没有看到对话框弹出请求许可,因此无法测试code路径。好吧,使用设备,而不是...问题还有就是OS似乎还记得我的答案只有这么一次问道。删除应用程序并没有帮助。在重新安装它保留了许可之前设置,所以没有再次弹出。

I am updating an app for iOS 6 Address Book authorization and have hit a problem in testing. The simulator always returns that authorization is granted. This means I do not see the dialog popup requesting permission and can therefore not test that code path. Ok, use a device instead... The problem there is the OS appears to remember my answer so only asks once. Deleting the app does not help. On reinstalling it has retained the permission setting from before, so again no popup.

重置模拟器并不能帮助,如果你进入隐私设置,在模拟器上没有应用被列为请求允许到地址簿中。

Resetting the simulator does not help and if you go into the Privacy settings on the simulator no apps are listed as requesting permission to the Address Book.

我唯一的选择就是用在其他iOS设备从来没有为每个测试安装在我们的应用程序。这不可能是你应该如何进行测试。任何想法吗?

The only option I have is use another iOS device that has never had our app installed on for each test. This cannot be how you are supposed to test this. Any ideas anyone?

感谢

推荐答案

发现了它。从设备,设置>通用​​>重置 - >重置位置和放大器;隐私。所以,你必须这样做,每个测试

Found it. From the device, Settings->General->Reset->Reset Location & Privacy. So you have to do that for each test

这篇关于ABAddressBookGetAuthorizationStatus在模拟器总是返回kABAuthorizationStatusAuthorized的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆