Skip to content

Instantly share code, notes, and snippets.

@lxcid
Created April 27, 2013 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lxcid/5473077 to your computer and use it in GitHub Desktop.
Save lxcid/5473077 to your computer and use it in GitHub Desktop.
Xcode's Build Phases' Run Script: Test with UIAutomation.
sudo dscl . append /Groups/_developer GroupMembership $USER
sudo DevToolsSecurity -enable
sudo -S su $USER -l -c "instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate \"$BUILT_PRODUCTS_DIR/$PRODUCT_NAME.$WRAPPER_EXTENSION\" -e UIASCRIPT \"$PROJECT_DIR/UIAutomations/uia_tap_on_unit_conversion.js\" -e UIARESULTSPATH \"$PROJECT_DIR/logs/\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment