Setup Appium for Xcode

Problem:

An unknown server-side error occurred while processing the command. Original error: Could not determine Xcode version: Could not get Xcode version. /Library/Developer/Info.plist does not exist on disk.

Fix: 

First i reset it using sudo xcode-select –reset

and then used sudo xcode-select –switch /Applications/Xcode.app

Note: just make sure you set correct path to Xcode (Application->Xcode)

 

Problem:

An unknown server-side error occurred while processing the command. Original error: Could not create simulator with name ‘appiumTest-70d1a17a-92b8-45b5-a374-b7d8e5e9625a’, device type id ‘iPad’ and runtime id ‘11.2’. Reason: ‘simctl error running ‘create’: An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=162): Incompatible device’

Fix:

Run “xcrun simctl list” to get the devices list.

 

Question:

An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: “Carthage binary is not found. Install using brew install carthage` if it is not installed and make sure the root folder, where carthage binary is installed, is present in PATH environment variable. The current PATH value: ‘/Users/huanglh/Library/Android/sdk/platform-tools/:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/node_modules/.bin:/Applications/Appium.app/Contents/MacOS:/Users/huanglh/Library/Android/sdk/platform-tools/:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin'”.

Fix:

brew install carthage