-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.24.0] iOS flow crashes: Failed to reach out XCUITest Server #880
Comments
@wingcommander2020 are you seeing the same issue when using maestro version |
My colleague is still on 1.23.0 and he does not get the error using the same flow-file. I already tried downgrading by manually uninstalling maestro1.24.0 and re-installing using 'MAESTRO_VERSION={1.23.0}'. I got version 1.23.0 but the error remained on my machine. |
Thanks for confirming @wingcommander2020 -- it does seem like something is not fully right with your local environment. Could you try recreating the simulator? If that doesn't work, can you try using another device model and/or iOS version on your sim? |
I'm having the same problem with an older version. I've tried reinstalling all the packages and of course, updating to the latest 1.24.0. |
After creating a new sim device the original error message is gone. The flow fails however prematurely for any iOS simdevice I pick. This is what is visible before the flow fails: edit: I mean the app tile of maestro, I have not seen this before - could this indicate the cause of the problem? Again on Android everything works as supposed to. |
I've install a new simulator and now I'm getting:
Any suggestions? |
This is also a problem in v1.23.0 and xcode version v4.1.
Seems like even just running the app and not executing the flow. |
Thanks for the context folks. @berikv from our team is working on stability improvements regarding the XCUITest runner so whenever there is an update on this we'll post it here! |
This issue is getting conflated. I'm working on a fix (#882) for the issue where maestro cli outputs "Failed to reach out XCUITest Server". Preferably I'd run a validation to make sure the issue is fixed. @wingcommander2020 is there a way I can run your flow? Or, alternatively, could you clone the maestro repo, checkout of the PR branch and run
This is strange. @wingcommander2020, can you share more information such as log files / etc. Did you try rebooting?
The fix I'm working on very likely also fixes this issue. @gumil is it possible for you to share a reproducible scenario or otherwise run it locally (as described above? |
Hi team, I'm trying to run some tests on a GitHub action. Maestro: latest -> The same flow works locally. (with act) Let me know if you need more context! |
I found out that I only have this error when I use the github step action to do maestro tests. I also added an issue to the github action here dniHze/maestro-test-action#50 |
Hi @berikv , thanks for your reply.
edit: Problem also occurs on maestro 1.25.0 for me. |
I am also facing the same issue. Could this be related to machine? Using M1 here |
I am on a M2 Mac Pro, my colleague has the same hardware and no problems with an older version of Maestro <1.24.0. Could this be related to an incompatible third party library's version? @berikv Would it help to list version numbers of certain dependencies to pinpoint the problem? |
I Have the same issue on Azure Devops pipeline, which uses the github actions
|
Facing the same issue on my MacBook. One possible idea: I do not have Rosetta installed on my Mac - our build server (where Maestro is running fine) does have Rosetta 2 installed. |
Hi, after #882 got merged, the problem about Thanks! |
Based on the above comment I retried on GitHub Actions, but unfortunately the problem is still occurring for me there: https://github.com/CodingItWrong/listapp-expo/actions/runs/4584588560/jobs/8358340701 |
that's unfortunate @CodingItWrong , I took a look at your workflow file and the only difference is that I am using macos-latest, not sure if that could have an impact. Here is an example of my github actions that started working after the update, in case you want to compare by yourself: https://github.com/RafaO/yourpet/actions/runs/4709440955/jobs/8352510660 Notice as well I added an echo instruction to print the actual version of maestro that's been used so I could verify it is 1.26. |
Thanks @RafaO; switching to Then I tried |
Unfortunately, the problem is not solved with Maestro 1.26.1 on my local machine 😞. Maestro Studio does not work either. Even though the website opens in the browser, the area below the Maestro Studio header stays blank and I get the following Terminal output:
|
I seem to be getting the exact same problem as Yanniks too. Have tried different versions of xcode, ios and maestro, along with updating macos to no avail. |
Hi there folks, it would be much appreciated if you could try upgrading to the most recent version of maestro as we have merged some fixes related to this issue and let us know if the issue still persists for you. Thanks! |
Also getting the error Any suggestions on how to debug that to provide some more useful error messages? |
@axelniklasson Upgrading maestro and/or downgrading node didn't work either EDIT: Might have to do with your MacOS. I upgraded mine from 12 to 13 (Ventura), reinstalled CocoaPods, and ruby then it started working |
@axelniklasson I am getting the following error:
The test is able to start, it launches the app and the first command is The error I am getting is very similar to the issue description so posting my experience here. I am using:
Update
|
@kzlukosky It had to do with my environment for me. You might want to try reinstalling or upgrading cocoapods and rbenv (or whatever other ruby version management you might use). Also make sure no physical devices are connected. Hopefully that works for you! |
Unfortunately I did see your comment and reinstalled cocoapods and ruby already and sadly am still experiencing the same issue. |
@kzlukosky Did you make sure to close all the terminal/console windows and IDE then reopen? Cause I was still getting the errors until I did that |
@KrisLau Yea I closed anything that was open, restarted by computer and tried again with the same issue. Was MacOS, Cocoapods and Ruby the only things you updated/reinstalled? |
@kzlukosky Afaik, yes but I also had to do some other stuff to get my project running again which might've changed things up! I did |
no clue why but maestro tests stopped working again and my builds have this error:
EDIT: Omg fixed it again. ok @kzlukosky this time i can narrow down what fixed it for me. My node version was too high (v20) so i had to set it back to the LTS version (v18.16.0) using nvm & maestro doesn't work with iOS 13.7 but worked with 16.4 consistently |
I believe I'm having the same problem. The application is installed and opened on the emulated device, but an error occurs in the swipe interaction step. Maestro: 1.28.0 maestro test ios-advanced-flow.yaml com.github.michaelbull.result.UnwrapException: kotlin.Unit xcuitest.XCTestDriverClient$XCTestDriverUnreachable: Failed to reach out XCUITest Server in RetryOnError |
Did you manage to fix this somehow? I'm having the same issue. cc @tqirazevedo @yarv-dev |
Did anyone managed to run Maestro on an Azure Pipeline with macOS-12 or macOS-13? I'm failling with the same error as some mentioned: Failed to reach out XCUITest Server in RetryOnError The app seems to complete the "launch app" step but fails on the next one: asserting for visibility on a button. It's worth mentioning that the same test case runs with no problem on my own machine which has a very similar setup: |
Just for an update here: Doing both the installtion of the Facebook IDB Companion and Maestro within the same shell made it so that it didn't fail with 'Failed to reach out XCUITest Server in RetryOnError', which seems really weird as the app did launch on the failing scenario. |
if anyone having same issue on 1.30 or 1.31 seems like there is an issue on those versions. going back to 1.29 solved for us |
My original problem was not solved, but I have not yet tried newer versions of Maestro. Most posts here are actually unrelated to my original post. Perhaps we should close this thread. |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. |
Maestro: 1.24.0
XCODE: Version 14.2 (14C18)
OS: macOS 13.2.1 (22D68)
When I try to run my iOS flow, maestro crashes and I get the following error message:
The output prior to the error message:
Android flow works fine.
I guess the problem occurred after I upgraded to 1.24.0. uninstalling and reinstalling the older version using
export MAESTRO_VERSION={version}; curl -Ls "https://get.maestro.mobile.dev" | bash
did not help either.
Any suggestions?
The text was updated successfully, but these errors were encountered: