node-simctl icon indicating copy to clipboard operation
node-simctl copied to clipboard

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

Open aaroncarry opened this issue 4 years ago • 3 comments

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

aaroncarry avatar Jul 02 '21 10:07 aaroncarry

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

mykola-mokhnach avatar Jul 02 '21 10:07 mykola-mokhnach

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.

aaroncarry avatar Jul 05 '21 05:07 aaroncarry

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?

mykola-mokhnach avatar Jul 05 '21 07:07 mykola-mokhnach