2012-02-08 12 views
2

私は、コマンドラインからInstrumentsを実行しようとしています。 しかし、それは次のエラーで失敗します。コマンドラインから起動できない機器

2012-02-08 14:48:16.104 instruments[94502:60f] -[NSAlert alertWithError:] called 
    with nil NSError. A generic error message will be displayed, 
    but the user deserves better. 

Wed Feb 8 14:48:16 c1dev-dm23409.overstock.com instruments[94502] 
    <Error>: kCGErrorInvalidConnection: CGSGetCurrentCursorLocation: Invalid connection 

Wed Feb 8 14:48:16 c1dev-dm23409.overstock.com instruments[94502] 
    <Error>: kCGErrorFailure: Set a breakpoint @CGErrorBreakpoint() to catch errors as 
    they are logged. 

2012-02-08 14:48:16.137 instruments[94502:60f] Recording cancelled : At least 
    one target failed to launch; aborting run 

は、いくつかは、私が行方不明です何を教えてもらえますか?

+0

コマンドとは何ですか? – iOSdev

答えて

1

エラーInvalid connectionとそれに続くSet a breakpoint...は、それが何らかの問題を抱えている場合に、どのような応答をするのでしょうか?

最終的に重要なのはRecording cancelled : At least one target failed to launchです。

私の経験上、これはプログラムがロードできなかったこと(プロビジョニングプロファイル、存在しないビルドなど)、またはコマンドラインで正しく指定しなかったことを意味します。ここに指定する方法は、instrumentsです。

$ instruments -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate 
    /path/to/my/AppName.app -e UIARESULTSPATH . -e UIASCRIPT testscript.js 
関連する問題