-
Notifications
You must be signed in to change notification settings - Fork 589
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
Run success on local and xcode on CI Runner but test failed when using fastlane run_tests #810
Comments
If your local is Apple Silicon (arm64) and the CI runner is intel, this is a known architectural issue. |
@adozenlines Author specifically mentioned that tests are being run on CI using fastlane as well as Xcode - architecture difference between those two runs should not exist (unless it is eg M1 CI and Xcode is running through rosetta). @goodboygb1 Have you tried running fastlane locally too? TLDR: Try running tests with different simulator or reset that simulator. Full Story: I started debugging and it seems there is some kind of issue in function In the end it happened to be some simulator (Metal?) issue. I change simulator from iPhone 15 Pro (iOS 17.0.1) to iPhone 15 (iOS 17.0.1) and it worked (fastlane was using iPhone 15). Maybe it is possible to add some additional safeguard check, eg in
Add additional validation that FYI: @stephencelis @mbrandonw |
local and CI runner both are Apple Silicon |
I already reset and change simulator, but for me I saw that the result image from my local and from CI runner is not the same image the resolution and image size is different so I thinks this is a root cause. And I also run with fastlane local it success but it failed with fastlane on runner |
@goodboygb1
In my personal experience maintaining same simulator model and os version was having biggest impact. |
I set precision of test to 95% and try to run test on
How can i solve this
The text was updated successfully, but these errors were encountered: