Guest User

Untitled

a guest
Oct 21st, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. xcrun simctl shutdown all
  2. 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)
  3. xcrun simctl delete unavailable
  4.  
  5. # This takes latest runtime available in xcode build. (IT counts with beta...)
  6. runtime=$(xcrun simctl list runtimes | grep "iOS" | tail -1 | awk -F' - ' '{print $3F}')
  7.  
  8. # Simulators should carry the iOS version. And probably CI Prefix.
  9. # Check if simulators alreadz exists.
  10. echo "The current iOS runtime is: $runtime"
  11. xcrun simctl create "iPhone 7" com.apple.CoreSimulator.SimDeviceType.iPhone-7 $runtime
Add Comment
Please, Sign In to add comment