Closed unickq closed 1 month ago
I also tried launching simulators with xcode - the same result
sudo xcode-select -switch /Applications/Xcode.app
sudo xcodebuild -license accept
xcrun simctl create mySim com.apple.CoreSimulator.SimDeviceType.iPhone-14 com.apple.CoreSimulator.SimRuntime.iOS-17-5
xcrun simctl boot mySim
xcrun simctl bootstatus mySim
and tried old config from your samples - https://github.com/webdriverio/appium-boilerplate/blob/110c11cceaddba4241eee29297f5a0007176e4d3/.github/workflows/e2e-ios-app.yml
The Appium logs state you don’t have a deviceName and no platformVersion
are you also running this on GHA? If so then there is a also a limited set of devices and versions available. You can check the docs of GHA
I posted a very detailed report with all options and logs. @wswebcreation, thanks for closing it without even reading it.
I'm sorry for closing it, I read the post, but I wasn't correct (I was doing that on my phone which I shouldn't do in the future).
Based on reading all the logs properly, this might be a connection timeout. What I know about GHA is that the resources are not as powerful as normal which might result in:
Based on the logs it stops the session after 120 seconds, this is also the default of WDIO, see https://webdriver.io/docs/configuration/#connectionretrytimeout. Try increasing this to 3 or 5 min.
I'm 99.99% sure this is not related to a bug in WDIO or the boilerplate, so I keep it closed, but it's still open for discussion. And again, sorry for closing it without the correct context
Thanks @wswebcreation, I tried to add those timeouts, but no luck
{
browserName: "safari",
platformName: "iOS",
"appium:deviceName": process.env.ios_model || "iPhone 14",
"appium:platformVersion": process.env.ios_version || "17.5",
"appium:orientation": "PORTRAIT",
"appium:automationName": "XCUITest",
"appium:newCommandTimeout": 240,
// "appium:showXcodeLog": false,
// "appium:showIOSLog": false,
// "appium:launchWithIDB": true,
// "appium:wdaLocalPort": 8101,
"appium:wdaLaunchTimeout": 60_000 * 5,
"appium:wdaStartupRetries": 5,
"appium:wdaStartupRetryInterval": 30_000,
"appium:wdaConnectionTimeout": 60_000 * 3,
"appium:simulatorStartupTimeout": 60_000 * 3,
}
I raised the same question in https://github.com/appium/appium/issues/20601
Do you also have more logs about the simulator/XCODE on GHAs? It might tell more about how long it takes to start the sim/build WDA
Hi there, I cloned this repo and tried to launch it with iOS and Android simulators. Android works fine, but struggling with iOS
iOS Caps
GitHub actions logs for iPhone 14 iOS 17.5 macos-14 - NO DEVICE SET
Appium logs
GitHub actions logs for iPhone 14 iOS 17.5 macos-14 - DEVICE SET
Appium logs
GitHub actions logs for iPhone 14 iOS 17.2 macos-13
Appium logs:
Environment
GitHub Actions config