webdriverio: WDIO Appium Cucumber project not running on MacOS M1

There’s an issue being experienced on M1 for a project that runs fine on Intel MacOs machines. If a user tries to run it, it indefinitely gets stuck.

Log

project % npm run en:android

> project@1.0.0 en:android
> wdio run config/env/dev/android/en.conf.android.js

This is test definitions = /Users/.../WebstormProjects/jsmobsframework/cucumber/step_definitions/*.js

Execution of 2 workers started at 2024-02-09T09:35:30.626Z

2024-02-09T09:35:30.632Z DEBUG @wdio/utils:initializeServices: initialize service "appium" as NPM package
2024-02-09T09:35:30.635Z INFO @wdio/cli:launcher: Run onPrepare hook
2024-02-09T09:35:30.636Z INFO @wdio/appium-service: Will spawn Appium process: appium --base-path / --relaxed-security --port 4724 --log ./appium.log --debug-log-spacing

It does not go pass this. The same project runs fine on Intel machines.

About this issue

  • Original URL
  • State: open
  • Created 5 months ago
  • Comments: 18 (12 by maintainers)

Most upvoted comments

I was able to reproduce the issue. It seems like we are only getting the first bytes of the stderr with the content dbug which maps to the Appium output when running it directly, and nothing more. Very strange. @jlipps any ideas?

The node_modules are in the repo, have you deleted the node_modules directory and ran npm install?

Can you please create a minimal reproducible example @ken4ward ? We need it to debug this

It runs fine on Intel but didn’t work on M1. Please help to resolve.

Can you please provide a reproducible example? Thanks!