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.

org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Could not determine iOS SDK version: Could not get Xcode version. /Library/Developer/Info.plist does not exist on disk.

See original GitHub issue

The problem

I’m trying to start an appium iosDriver and I’m getting the following error: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Could not determine iOS SDK version: Could not get Xcode version. /Library/Developer/Info.plist does not exist on disk.

Environment

  • Appium version 7.3.0 (Maven dependency)
  • Appium desktop 1.15.1
  • MacOS 10.15.3
  • Emulator

Details

I’ve tried doing sudo xcode-select --switch /Applications/Xcode.app with no success…even though my Xcode.app is installed on the Applications folder.

The full error is: [RemoteTestNG] detected TestNG version 7.0.1 FAILED CONFIGURATION: @BeforeMethod startMobileDriver org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Could not determine iOS SDK version: Could not get Xcode version. /Library/Developer/Info.plist does not exist on disk. Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'hostinfo', ip: 'IP', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.3', java.version: '13.0.2' Driver info: driver.version: IOSDriver remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not determine iOS SDK version: Could not get Xcode version. /Library/Developer/Info.plist does not exist on disk. at getResponseForW3CError (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9) at asyncHandler (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:388:37) at process._tickCallback (internal/process/next_tick.js:68:7) Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'mbp-tabu.lan', ip: 'fe80:0:0:0:c0:3875:1ed8:651d%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.3', java.version: '13.0.2'

Link to Appium logs

Create a GIST which is a paste of your full Appium logs, and link them here. Do NOT paste your full Appium logs here, as it will make this issue very long and hard to read! If you are reporting a bug, always include Appium logs!

Code To Reproduce Issue [ Good To Have ]

`iOSDriver = new IOSDriver<IOSElement>(getServerURL(), setiOSCapabilities());

` private static DesiredCapabilities setiOSCapabilities() { DesiredCapabilities cap = new DesiredCapabilities(); cap.setCapability(MobileCapabilityType.DEVICE_NAME, JGAConstants.IOS_DEVICE_NAME); }

	cap.setCapability(MobileCapabilityType.PLATFORM_NAME, Platform.IOS);
	cap.setCapability(MobileCapabilityType.APP, JGAConstants.IOS_APP_PATH.getAbsolutePath());
	cap.setCapability(AndroidMobileCapabilityType.AUTO_GRANT_PERMISSIONS, true);

	cap.setCapability(MobileCapabilityType.NO_RESET, true);
	cap.setCapability(MobileCapabilityType.AUTOMATION_NAME, AutomationName.IOS_XCUI_TEST);

	return cap;
}

`

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
KazuCocoacommented, Mar 18, 2020

Yes. Forgot but old Xcode was pointed /Applications/Xcode.app/ when sudo xcode-select --switch /Applications/Xcode.app, but /Applications/Xcode.app/Contents/Developer was correct. Maybe newer xcode-select command can treat the Contents/Developer part well

I assume this is Xcode/the CLI tool layer’s error, but no good idea for now. How about restarting your machine?

0reactions
hemanthwadiyarcommented, Aug 27, 2021

@KazuCocoa Thanks a ton… It worked for me as well

Read more comments on GitHub >

github_iconTop Results From Across the Web

org.openqa.selenium.SessionNotCreatedException: A new ...
This happens because the previous session wasn't shutdown properly and it happens when there is exception thrown in your test.
Read more >
org.openqa.selenium.SessionNotCreatedException: Unable ...
Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command.
Read more >
Unable to create a new remote session - Katalon Community
Please check the server log for more details. ... Original error: An unknown server-side error occurred while processing the command.
Read more >
org.openqa.selenium.SessionNotCreatedException: Original ...
SessionNotCreatedException : Unable to create a new remote session. ... Original error: An unknown server-side error occurred while processing the command.
Read more >
org.openqa.selenium.SessionNotCreatedException: Unable ...
macOS Sierra version 10.12(16A323) Appium v1.5.3 Xcode Version 8.0 Eclipse Version: Mars.2 java version "1.8.0_121" I'm trying to automate iOS app using ...
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