Cannot start tracing when running tool 4.5 from the command line on devices

I am trying to run Tools 4.5 from the command line on devices. I have the following

instruments -w UICD -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate /Users/xxx/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphoneos/AppName.app -e UIASCRIPT /Users/xxxx/Documents/Automation/test.js -e UIARESULTSPATH /pathName 

I also tried to ignore the path and the .app extension when I start the iPod. And tried both Release-iphoneos and Debug-iphoneos build. But no matter what I do, it always gave me an error:

 Instruments Trace Error : Failed to start trace 

Can someone tell me why and how to do this? Thanks!

+4
source share
1 answer

I really understand why this is not working. This is nothing wrong with the command above. Running tools from the command line does not currently work on all supported iOS devices. The same command works for my new ipad with iOS6, but not for my old ipod with ial. I will find out the link below. Hope this helps everyone. In addition, in some strange case, the command only works when the And Xcode tools do not work ....

https://discussions.apple.com/thread/4344641?start=0&tstart=0

+3
source

Source: https://habr.com/ru/post/1442209/


All Articles