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

私が欠けているものを教えてもらえますか?

4

1 に答える 1

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
于 2012-05-07T22:21:48.897 に答える