Skip to content

Error at Post step #505

Open
Open

Description

@rock88

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

Activity

  1. dotdoom commented on Mar 8, 2025

    @dotdoom
    Member

    Thank you for reporting! To help me assess the urgency, could you please confirm whether the error also breaks (marks as "failed") the GitHub Actions workflow, or only logs the message?

  2. rock88 commented on Mar 12, 2025

    @rock88
    Author

    Hi @dotdoom,

    Sorry for delay, I can't find any logs to confirm that the action breaks the entire workflow if it fails at the Post step (because GitHub only stores these logs for 90 days). Currently I only have logs of failed UI tests that result in a failure simulator-action at the Post step:

    Image
  3. nickolas-dimitrakas commented on Feb 3, 2026

    @nickolas-dimitrakas

    Hi! Not sure this fixes the underlying shutdown-state issue, but it did for me: I was using steps.simulator.outputs.UDID and switching to steps.simulator.outputs.udid resolved it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions