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 issueThe 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:
- Created 4 years ago
- Comments:13 (5 by maintainers)
Top GitHub Comments
Yes. Forgot but old Xcode was pointed
/Applications/Xcode.app/
whensudo xcode-select --switch /Applications/Xcode.app
, but/Applications/Xcode.app/Contents/Developer
was correct. Maybe newer xcode-select command can treat theContents/Developer
part wellI assume this is Xcode/the CLI tool layer’s error, but no good idea for now. How about restarting your machine?
@KazuCocoa Thanks a ton… It worked for me as well