appium / node-simctl

Node wrapper around Apple's simctl binary
Apache License 2.0
65 stars 30 forks source link

Appium can't get simulator list by command `/usr/bin/xcrun simctl list devices -j` #145

Open aaroncarry opened 3 years ago

aaroncarry commented 3 years ago

The problem

Hi, There is an issue here when I use Appium to create session with simulator. Appium does not seem to be able to successfully get the currently available simulators list via the command But actual this command is works.

image

Environment

Mac OS:Big Sur (Version 11.0.1) CPU: Apple M1 Appium: v1.20.1 Xcode: 12.4

Appium Log

https://gist.github.com/lin907597898/0d8850e6c577e88408a414d775ed1449

mykola-mokhnach commented 3 years ago

As you could see from the log the command fails because of 60s timeout. I'm not quite sure why this timeout is present on that particular system

aaroncarry commented 3 years ago

As you could see from the log the command fails because of 60s timeout. I'm not quite sure why this timeout is present on that particular system

Thank you for your prompt reply. When I execute this command on the Appium server machine, it can work normally. Another weird thing is that the Appium log shows 60s timeout, but it actually stuck about ten minutes before the error log was thrown.

mykola-mokhnach commented 3 years ago

Are you sure the Appium process is running under the same shell and has the same environment that the user for which these commands don't timeout?