question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run tests on IOS 14 simulator

See original GitHub issue

The problem

I have a selenium grid with 3 IOS simulators (2x 12.1, 1x14.0). Only the 14.0 simulator exhibits the following behaviour

Environment

  • Appium version (or git revision) that exhibits the issue: 1.18.3
  • Last Appium version that did not exhibit the issue (if applicable): N/A
  • Desktop OS/version used to run Appium: N/A
  • Node.js version (unless using Appium.app|exe): 12.18.2
  • Npm or Yarn package manager: nom
  • Mobile platform/version under test: Safari on IOS 14.0
  • Real device or emulator/simulator: simulator
  • Appium CLI or Appium.app|exe: CLI Xcode 12.0.1 (12A7300)

Details

WDA installed successfully on IOS 14.0 simulator but no navigation to target web site is performed. The same logic works perfectly on IOS 12.1 simulator. The following error occurs:

** 2020-10-22 11:18:48:599 [XCUITest] Skipping setting of the initial display orientation. Set the “orientation” capability to either “LANDSCAPE” or “PORTRAIT”, if this is an undesired behavior. 2020-10-22 11:18:48:599 [BaseDriver] Event ‘orientationSet’ logged at 1603365528599 (12:18:48 GMT+0100 (British Summer Time)) 2020-10-22 11:18:48:928 [HTTP] --> GET /welcome 2020-10-22 11:18:48:928 [HTTP] {} 2020-10-22 11:18:48:936 [HTTP] Sending welcome response with params: {“message”:“Let’s browse!”} 2020-10-22 11:18:48:938 [HTTP] <-- GET /welcome 200 11 ms - 195 2020-10-22 11:18:48:939 [HTTP] 2020-10-22 11:18:49:020 [HTTP] <-- GET /favicon.ico 200 30 ms - 1150 2020-10-22 11:18:49:021 [HTTP] 2020-10-22 11:18:49:203 [simctl] Error running ‘spawn’: An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405): Invalid device state 2020-10-22 11:18:49:204 [XCUITest] {} 2020-10-22 11:18:49:205 [WD Proxy] Matched ‘/session/530896b9-b8f6-45a2-aab7-55e485f9d703’ to command name ‘deleteSession’ 2020-10-22 11:18:49:205 [WD Proxy] Proxying [DELETE /session/530896b9-b8f6-45a2-aab7-55e485f9d703] to [DELETE http://127.0.0.1:8100/session/75BFEAA0-9570-467B-927E-C239B7FF71A9] with no body 2020-10-22 11:18:50:256 [WD Proxy] Got response with status 200: {“value”:null,“sessionId”:null} 2020-10-22 11:18:50:257 [DevCon Factory] Releasing connections for 24E3FDDC-BA71-417C-A27A-77250C30F3D4 device on any port number 2020-10-22 11:18:50:257 [DevCon Factory] Found cached connections to release: [“24E3FDDC-BA71-417C-A27A-77250C30F3D4:8100”] 2020-10-22 11:18:50:257 [DevCon Factory] Cached connections count: 0 2020-10-22 11:18:50:257 [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on. 2020-10-22 11:18:50:258 [BaseDriver] Event ‘newSessionStarted’ logged at 1603365530258 (12:18:50 GMT+0100 (British Summer Time)) 2020-10-22 11:18:50:261 [W3C] Encountered internal error running command: Error: Safari cannot open ‘http://10.203.48.24:55704/welcome’ after 0.429s because of: Error running ‘spawn’: An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405): 2020-10-22 11:18:50:261 [W3C] Invalid device state 2020-10-22 11:18:50:261 [W3C] at SimulatorXcode11_4.openUrl (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-ios-simulator/lib/simulator-xcode-10.js:55:13)**

Deleting simulator and creating a new one did not help. Logs file:

24E3FDDC-BA71-417C-A27A-77250C30F3D4_issue.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mcopjancommented, Oct 23, 2020

Thanks @KazuCocoa I will try installation of appium@beta. I was asking as I have a feeling that using npm install appium@beta resulted in installation of appium 2.0 beta last time I tried. I could be wrong though, let me get back to you on the this one. Thanks

0reactions
nive745commented, Mar 29, 2022

I am having same issue please give us solution

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unit test not working on Xcode 14 … | Apple Developer Forums
In my case setting Host Application in the test target settings > General > Testing from "None" to the main app solved this...
Read more >
How to fix "Unable to boot the iOS simulator" error - Sarunw
The only thing you need to do is install Fastlane and run the following command.
Read more >
Can't run ios test in xcode - Stack Overflow
I could run my app on simulator, but can't run any tests. I think they could run only on simulator, but XCode does...
Read more >
Run iPhone simulator with appiume but get xcodebuild failed ...
Build and Run the WebDriverAgentRunner runner on simulator by selecting Product > Test from the Xcode menu's bar; Once Runner is successfully ...
Read more >
Issue with Xcode 14 beta 4 and iOS 16 Simulator
I've encountered an issue using Xcode 14 beta 4. Updated to RevenueCat 4.9.0 and still seeing the issue. If I use a StoreKit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found