Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@phynet
Last active January 8, 2018 10:04
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 phynet/3371b2f4973772b72049a463aa8231fb to your computer and use it in GitHub Desktop.
Save phynet/3371b2f4973772b72049a463aa8231fb to your computer and use it in GitHub Desktop.
   brew tap wix/brew

This line is for GNU instalation, because old syntaxis uses POSIX and to run new scripts is necessary to use GNU

    brew install gnu-sed grep --with-default-names

Update new commands for mac that uses GNU

    brew install bash
    chsh -s /usr/local/bin/bash
    brew install gnu-sed grep --with-default-names
    brew install coreutils git openssl htop pstree moreutils bash-completion

Execute to set permissions inside the app to YES in order to dissmiss all of them when runnin UI tests.

instruments -s devices | grep iPhone | grep -Po '\[\K[^\]]*' | grep -v '[a-z][0-9]' | xargs -I{} applesimutils --bundle 'com.myapp.es' --setPermissions 'notifications=YES' --byId {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment