generated from futureware-tech/template
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
Describe the bug
Hello! Sometimes the action fails at the post step with a next error:
Post job cleanup.
Shutting down device 4C7E3539-9231-4B19-B38F-D9D936BEC706.
$ xcrun simctl shutdown 4C7E3539-9231-4B19-B38F-D9D936BEC706
Error: Command failed: xcrun simctl shutdown 4C7E3539-9231-4B19-B38F-D9D936BEC706
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405):
Unable to shutdown device in current state: Shutdown
Several times I saw the error with the status Shutting Down
To Reproduce
I don't know how to reliably reproduce this, but it happens from time to time when running UI tests with multiple simulator clones.
Expected behavior
No error
Additional context
I think need to check status of the simulator and not call xcrun simctl shutdown if status is Shutdown or Shutting Down