Skip to content

Instantly share code, notes, and snippets.

@ahmedAlmasri
Created April 22, 2020 10:34
Show Gist options
  • Save ahmedAlmasri/0366fb3bc3b8b66cb9d6e5b295124fe0 to your computer and use it in GitHub Desktop.
Save ahmedAlmasri/0366fb3bc3b8b66cb9d6e5b295124fe0 to your computer and use it in GitHub Desktop.
devices=(
"iPhone 8"
"iPhone 8 Plus"
"iPhone SE"
"iPad Pro (11-inch)"
"iPhone Xʀ")
workspace="test"
scheme="test"
myCommand="xcodebuild test -workspace $workspace.xcworkspace -scheme $scheme"
for index in ${!devices[*]}
do
myCommand+=" -destination 'platform=iOS Simulator,name=${devices[$index]}'"
done
eval $myCommand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment