设备上的UIAutomation在开始捕获时挂起

时间:2013-03-15 23:06:27

标签: iphone xcode instruments ui-automation

当我尝试使用UIAutomation在设备上捕获UI输入时,它会挂起“开始捕获”。

1) I click on Profile in Xcode which
2) Starts up Instruments where I select Automation and click Profile
3) Which starts Instruments running.  In Scripts I select Add->Create which shows the record button at the bottom 
4) I click the record button and it hangs saying "Starting Capture" and doesn't record my UI input.

我的个人资料方案的构建配置是调试。

知道我错过了什么导致UIAutomation挂起?

3 个答案:

答案 0 :(得分:41)

对于iOS8设备,还要确保在“设置”中启用了UI自动化。

设置 - >开发者 - >启用UI自动化

答案 1 :(得分:16)

想出来。我希望这有助于其他人!

1)  Click on Profile in Xcode (or Cmd-I)
2)  In Instruments select Automation and click Profile
3)  Click Instruments Record button to stop the running of the app
4)  Click Scripts -> Add -> Create
5)  Click Record button at bottom of Instruments (which is for recording the script)
6)  Click Record button at top of Instruments (which is for running the app)
7)  Click on Trace Log -> Script to view the script you are creating.

呼!

答案 2 :(得分:1)

检查您是否在配置文件方案中选择了调试模式,并且您还拥有正确的签名标识和配置文件。

相关问题