Skip to content

Instantly share code, notes, and snippets.

@ginowu7
Last active January 27, 2018 02:35
Show Gist options
  • Save ginowu7/071d2c5da3d811716b55cbbd3ad71c8a to your computer and use it in GitHub Desktop.
Save ginowu7/071d2c5da3d811716b55cbbd3ad71c8a to your computer and use it in GitHub Desktop.
#!/bin/bash
xcrun simctl shutdown all
path=$(find ~/Library/Developer/Xcode/DerivedData/${project_name}-*/Build/Products/Debug-iphonesimulator -name "${app_name}.app" | head -n 1)
echo "${path}"
filename=${path_to_MultiSimConfig.txt}
grep -v '^#' $filename | while read -r line
do
echo $line
xcrun instruments -w "$line"
xcrun simctl install booted $path
xcrun simctl launch booted ${bundle_identifier}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment