2013-03-15 8 views
11

UIAutomationを使用してデバイス上でUI入力をキャプチャしようとすると、「キャプチャの開始」とハングアップします。キャプチャの開始時にデバイス上のUIAutomationがハングアップする

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がハングする原因となっているものは何ですか?

答えて

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. 

Whew!

+2

すべてのiOSデベロッパーにはこのパンフレットを手渡す必要があります。 –

1

プロファイル・スキームでデバッグ・モードを選択したことを確認し、正しいサインインIDとプロビジョニング・プロファイルを持っていることを確認してください。

41

iOS8デバイスの場合、[設定]でUIオートメーションが有効になっていることも確認してください。

設定 - >開発者 - > UIオートメーションを有効にする

+0

ありがとうございます。 –

+3

あなたは、単にハングさせるのではなく、有効にしていないというエラーを投げると思います。 – Sirens

+0

ありがとう。それは私を助けた。 – ZevsVU

関連する問題