Created
April 22, 2020 10:34
-
-
Save ahmedAlmasri/0366fb3bc3b8b66cb9d6e5b295124fe0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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