在iOS 8上通过命令行在设备上进行UIAutomation失败

时间:2014-10-31 11:26:31

标签: xcode ios8 instruments ui-automation

我试图通过仪器命令行工具在iOS 8上的设备上控制我的应用程序。该命令失败,并显示以下错误:

  

自动化仪器在尝试运行脚本时遇到异常。 UIAScriptAgentSignaledException

有谁知道为什么?

1 个答案:

答案 0 :(得分:1)

在iOS 8上,设备的开发者设置中有一个新选项Enable UI Automation

Settings -> Developer -> Enable UI Automation

将此项切换为“开”可解决此问题。