Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Calabash 框架为 iOS 编写 UI 测试。一切都很好,但是系统权限警报非常烦人,因为它们会破坏测试流程。前段时间,我阅读了有关在 iOS 模拟器上自动授予所需权限的开源库。有人知道它的名称或其他解决该问题的方法吗?
Calabash iOS 会自动关闭大多数隐私对话框。 维基页面
我们有一个示例应用程序可以证明这种行为是有效的:
权限
我对(现已删除)其他答案投了反对票,因为这些对话框会阻止 UIAutomation,因此无法执行任何手势。