maestro: Error when trying to run iOS test
I followed the install directions and have a simulator running with idb_companion but i get the following error when running maestro test test_flow.yaml. Originally I was getting an error about missing java so i installed that with brew.
java.lang.IllegalStateException: No devices found. Select a platform by passing --platform <android|ios> for more details
at maestro.cli.util.MaestroFactory.autoDetectPlatform(MaestroFactory.kt:78)
at maestro.cli.util.MaestroFactory.createMaestro(MaestroFactory.kt:34)
at maestro.cli.command.TestCommand.call(TestCommand.kt:58)
at maestro.cli.command.TestCommand.call(TestCommand.kt:30)
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 picocli.CommandLine.execute(CommandLine.java:2058)
at maestro.cli.AppKt.main(App.kt:94)
and this is my test_flow.yaml file.
AppId: com.reactjs.native.Versd-Dev
---
- launchApp
- tapOn: "Text on the screen"
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20
@phynet TLDR - iOS 16 is not yet supported using maestro (view the known issues link above)
Also noting that this comment chain is starting to drift off. @matthewmturner hope
idb_companionis treating you well now 🤞the issue with ios 16 seems to be on the
idbside https://maestro.mobile.dev/troubleshooting/known-issuesI’m having a similar issue, no matter if it’s a sim or device 🙏
I had to upgrade my Xcode to 14 to resolve the issue that i originally reported.
It seems there is an ongoing issue that is being investigated for iOS. I just spoke with some people on the Slack channel, so I guess we just have to wait 😃
https://mobile-dev-inc.slack.com/archives/C041FU72T54/p1666866408069079
@rborn yes now when I start the metro bundler I don’t see this error, but I still face a crash of idb companion when trying to run maestro test
ios-flow.yamlRight after thelaunchAppstep idb companion stops running and my test fails@rborn @alexandlazaris Oops, then is my bad. Sorry for add noise to this channel.
meh, ignore me, I forgot to
idb_companion --udid {id of the iOS device}😢