Search code examples
ioscommand-linecontinuous-integrationui-automationios-ui-automation

Instruments doesn't continue after running from command line


When I run Instruments from the command line using this script

instruments -w <DEVICE_ID> -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate <PATH_TO_APP> -e UIASCRIPT <PATH_TO_SCRIPT> -e UIARESULTSPATH <RESULTS_PATH>

The app opens on the device but doesn't run the script. The Terminal cursor moves to the next line and it looks like it just freezes

enter image description here


Solution

  • You need to sign your app with a Developer Profile. The app wont run from the command line if you sign it with a Enterprise Profile