-
-
Notifications
You must be signed in to change notification settings - Fork 423
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
'application does not support the x86_64 Simulator architecture' error on an automation test start on iOS simulator on MBP M1 Pro (arm) #2489
Comments
What numbers is shown when you run For example the uname command could be
|
Here are the results of commands:
|
Thanks. Your node process runs out of the InteliJ environment such as a terminal running in InteliJ window, correct? |
I ran those commands in the system terminal when IntelliJ Idea IDE was open in the background. After the closing of the IDE, I got this result:
Thanks. |
Then, what the output of:
on your Appium's running env? |
|
Then, appium-xcuitest-driver/lib/app-utils.js Lines 60 to 78 in d35ad54
I haven't seen the Then, perhaps what we could do is... adding a capability to skip https://github.com/appium/appium-xcuitest-driver/blob/master/lib/driver.js#L1581 entirely I guess. @mykola-mokhnach do you have any idea to check possible reasons why his env runs on x86_64 for Appium node process...? |
This exception is only possible if node is running under Rosetta emulation AND |
I ran these commands in the terminal and gets results:
I uninstalled node and installed it again by homebrew. Now
But still receive the same issue when starting a test. |
which command do you use to start the server? have you checked the actual |
When I start the server manually, not in the autotest, I use the
|
And here is the output of the
|
Please make sure java is also built for arm64 if you start the Appium server from java code |
Yes, the problem was with Java. I used
After reinstalling Java for arm, I used
And the problem on a test starting doesn't reproduce more. @mykola-mokhnach @KazuCocoa Thank you very much! |
I've created a patch #2492, which should improve the validation for the above case. Nevertheless it is advices to avoid possible emulation and run native binaries for the corresponding architecture to achieve the best performance |
I receive org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: The com.some_app.ios application does not support the x86_64 Simulator architecture: error on test start on iOS simulator after update to XCUITest driver version 7.28.3
Environment:
Appium - 2.12.1
XCUITest - 7.28.3
MacOS - 15.1 (24B83) Sequoia
Xcode - 16.1 (16B40)
Simulator - iPhone 15 Pro iOS 17.5 (21F79)
Machine - MacBook Pro M1 Pro
This error reproducing, in my case, starts from xcuitest driver version 6.0.2 - https://github.com/appium/appium-xcuitest-driver/releases/tag/v6.0.2, in version 6.0.1, this issue doesn't reproduce (tested locally).
Info:
lipo -info <path to app>APP_NAME.app/APP_NAME
terminal command result on the machine -Non-fat file: <path to app>APP_NAME.app/APP_NAME is architecture: arm64
uname -m
terminal command result on the machine -arm64
Appium log:
The text was updated successfully, but these errors were encountered: