maestro: [1.34.1] MaestroDriverStartupException$IOSDriverTimeoutException
Describe the bug The issue occurs when running a Flow.
To Reproduce Steps to reproduce the behavior :
- Start the simulator
- Run
maestro test ./flows// (flows is a folder with all my .yml) - The Flow fails at Maestro iOS driver did not start up in time.
Expected behavior The error is not occurs
Screenshots maestro.MaestroDriverStartupException$IOSDriverTimeoutException: Maestro iOS driver did not start up in time at maestro.drivers.IOSDriver.awaitLaunch(IOSDriver.kt:476) at maestro.drivers.IOSDriver.open(IOSDriver.kt:65) at maestro.Maestro$Companion.ios(Maestro.kt:585) at maestro.cli.session.MaestroSessionManager.createIOS(MaestroSessionManager.kt:309) at maestro.cli.session.MaestroSessionManager.createMaestro(MaestroSessionManager.kt:154) at maestro.cli.session.MaestroSessionManager.access$createMaestro(MaestroSessionManager.kt:49) at maestro.cli.session.MaestroSessionManager$newSession$session$1.invoke(MaestroSessionManager.kt:82) at maestro.cli.session.MaestroSessionManager$newSession$session$1.invoke(MaestroSessionManager.kt:81) at maestro.cli.db.KeyValueStore.withExclusiveLock(KeyValueStore.kt:37) at maestro.cli.session.SessionStore.withExclusiveLock(SessionStore.kt:74) at maestro.cli.session.MaestroSessionManager.newSession(MaestroSessionManager.kt:81) at maestro.cli.session.MaestroSessionManager.newSession$default(MaestroSessionManager.kt:58) at maestro.cli.command.TestCommand.call(TestCommand.kt:136) at maestro.cli.command.TestCommand.call(TestCommand.kt:46) at picocli.CommandLine.executeUserObject(CommandLine.java:1933) at picocli.CommandLine.access$1200(CommandLine.java:145) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2332) at picocli.CommandLine$RunLast.handle(CommandLine.java:2326) at picocli.CommandLine$RunLast.handle(CommandLine.java:2291) at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2159) at maestro.cli.DisableAnsiMixin$Companion.executionStrategy(DisableAnsiMixin.kt:22) at picocli.CommandLine.execute(CommandLine.java:2058) at maestro.cli.AppKt.main(App.kt:117)
Environment information (please complete the following information):
- Maestro version 1.34.1
- Platform: iOS 17.0.1
- Framework: React Native
- Device model and OS version: iPhone14
- Simulator
- Host Mac M1 Pro
- Mac OS Sonoma 14.1 (23B74)
Additional context
After many attempts, it freezes the simulator.
About this issue
- Original URL
- State: open
- Created 8 months ago
- Reactions: 31
- Comments: 18
Having same problem on v1.36.0:
maestro.MaestroDriverStartupException$IOSDriverTimeoutException: Maestro iOS driver did not start up in timeI’ve tried many different things but the only way I can get it to work again is to completely restart my mac.
Edit:
I at least found a way to get maestro working again after the iOS Driver error starts, without resorting to restarting the entire computer. It appears that even when
maestrois run and/or shutdown correctly, it sometimes leaves stray iOS Driver processes running. I found thatmaestrostarts working again after finding then killing these processes (usually 2):Edit:
Here’s a one liner to kill the processes more easily:
Having this same problem mainly on v1.35.0, this was previously intermittent on v1.34.1.
Thanks, but I already try that too. It doesn’t change, same error :
maestro.MaestroDriverStartupException$IOSDriverTimeoutException: Maestro iOS driver did not start up in timeAfter updating iOS 17.4 and Xcode 15.3 in the CI (Codemagic), Maestro now works flawlessly. Not sure of the reason but wanted to share my experience.