Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- xcrun simctl shutdown all
- xcrun simctl delete $(xcrun simctl list | grep -o '[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}' | xargs)
- xcrun simctl delete unavailable
- # This takes latest runtime available in xcode build. (IT counts with beta...)
- runtime=$(xcrun simctl list runtimes | grep "iOS" | tail -1 | awk -F' - ' '{print $3F}')
- # Simulators should carry the iOS version. And probably CI Prefix.
- # Check if simulators alreadz exists.
- echo "The current iOS runtime is: $runtime"
- xcrun simctl create "iPhone 7" com.apple.CoreSimulator.SimDeviceType.iPhone-7 $runtime
Add Comment
Please, Sign In to add comment