`xcrun simctl delete unavailable` gives mysterious error

Originator:aleksander.grzyb
Number:rdar://44301961 Date Originated:10-Sep-2018 04:31 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 10 beta 6
Classification:Other Bug Reproducible:Always
 
Summary:
When having two Xcode's (Xcode 10 beta 6 and Xcode 9.4) on our privately hosted CI machine we need to delete unavailable simulators to start in clean state which is only to have one simulator that we want to use. 

Sometimes `xcrun simctl delete unavailable` gives us mysterious error:

> An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=164):
> Errors encountered while deleting multiple devices.

I can see that some simulators have invalid state, such us `Creating`. Do you have any tips on how to avoid this type of error and in general how we should manage simulators when simultaneously we use two different Xcode versions?



Steps to Reproduce:
1. Run `xcrun simctl delete unavailable`.

Expected Results:
`xcrun simctl` should delete unavailable simulators.

Actual Results:
`xcrun simctl` doesn't delete unavailable simulators.

Version:
Xcode 10 beta 6

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!