2012-02-08 3 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