Reputation: 131
How can I run apple instruments for iOS automation (iPhone/iPad) from the command line? I saw some blogs which said the below command
instruments -w -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -e UIASCRIPT
I have not been able to get this running.
Upvotes: 3
Views: 3971
Reputation: 49054
Broken out by parameter for easier reading:
mkdir TestResults
instruments
-D TestResults/TestTrace/theTrace.trace
-t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate
/Absolute/Path/to/built/app/For/Simulator/AppName.app
-e UIARESULTSPATH TestResults/
-e UIASCRIPT Tests/some_test_file.js
Upvotes: 3