Skip to content

Instantly share code, notes, and snippets.

@omarzl
Created May 5, 2022 22:26
Show Gist options
  • Save omarzl/79b6ef4a8d4610660675ccd232a6e939 to your computer and use it in GitHub Desktop.
Save omarzl/79b6ef4a8d4610660675ccd232a6e939 to your computer and use it in GitHub Desktop.
# Simulator creation
sim_name="PR-23175-rappi"
create_output=$(xcrun simctl create $sim_name com.apple.CoreSimulator.SimDeviceType.iPhone-8-Plus)
echo $create_output
simulator_id=$(echo $create_output | tail -1)
# Simulator validation
xcrun simctl list devices $simulator_id
# Xcode test
xcodebuild test -destination "platform=iOS Simulator,id=$simulator_id" ...
# Simulator deletion
xcrun simctl delete $simulator_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment