Why am I seeing “An error occurred while trying to run the script.” in the UI Automation instrument?

后端 未结 4 1389
渐次进展
渐次进展 2021-01-04 04:08

When I try to run a UI Automation script on iOS 5 devices I am getting the following error:

\"An error occurred while trying to run the script.\"

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-04 04:27

    On devices you should explicity allow to run UI Automation scripts.

    • Go to Settings -> Developer
    • Switch Enable UI Automation to on

    After turning the option on, the error went away and everything worked as expected.

    Developer Settings - enable UI Automation

提交回复
热议问题