简体   繁体   English

为什么Instruments UI Automation无法在我的设备上运行?

[英]Why does Instruments UI Automation fail to run on my device?

I have been trying to run a UI Automation script on my iPad( iOS 8.1 ) for some time and it always crashes with the message : An error occurred while trying to run the script. 我尝试在iPad( iOS 8.1 )上运行UI自动化脚本已有一段时间,并且它始终崩溃并显示以下消息An error occurred while trying to run the script. logtype : Fail . 日志类型Fail

There are no further notes on what went wrong. 关于发生了什么问题,没有进一步的说明。 I also downloaded the crash-logs and opened the console on my MacBook to see what is going on, but I never saw any errors. 我还下载了崩溃日志并在MacBook上打开了控制台,以查看发生了什么,但我从未看到任何错误。

Is there a way to figure out was exactly is going wrong and why the UI Automation script(javascript) fails? 有没有办法找出到底是哪里出错了,为什么UI自动化脚本(javascript)失败了? I am running Xcode 6.1 . 我正在运行Xcode 6.1

Otherwise I can build and run my app just fine on the iPad. 否则,我可以在iPad上很好地构建运行我的应用程序。 I am also able to run the exact same UI Automation script in the Simulator without any issues. 我还可以在模拟器中运行完全相同的UI自动化脚本,而不会出现任何问题。

I finally figured it out. 我终于弄明白了。 I forgot to activate the Enable UI Automation check mark under Settings > Developer . 我忘记激活Settings > Developer下的Enable UI Automation复选标记。 It would have been nice by Apple to just point that out and not end in a non-saying error. 苹果公司指出这一点,而不是以不说不出的错误来结束,将是一件好事。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM