Issue
When trying to run a test on a macOS simulator, you might encounter an error that says Timed out while enabling automation mode
.
Possible solutions
Use the automationmodetool
command line tool to enable automation mode without authentication. To do so, add a Script Step to your Workflow and add the following command to the Step:
sudo automationmodetool enable-automationmode-without-authentication