I’m seeing the exact same issue. My Appium tests are written in a way that they start the server programatically. It works as expected on the simulator - no issues at all. On the real device, however, I get the [XCUITest] Error: Unknown device or simulator UDID: <udid> error.
Appium 1.6.4
I tried uninstalling/reinstalling libimobiledevice (with --HEAD, per the instructions)
I switched USB ports
I ran ios-deploy -c and my device is recognized
I verified my device name is correct in my capabilities
I ran Appium from the console and then attempted to run my tests on the real device, and that worked. I just can’t run them for some reason when I start the Appium server programmatically.
Have a scenario, Have the code in eclipse on windows, to start the appium server on mac from windows.
Installed appium through npm, manually if i start the server on mac and trigger the run using the eclispe code on windows is working fine. when i start the appium server though code, Im getting the below error. Also tried setting the PATH variable on mac and also in eclipse environment Run congiuration.–> No luck.
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: "Carthage not found. Install using brew install carthage". (WARNING: The server did not provide any stacktrace information)
Note: Carthage is installed. carthage version- 0.27
appium 1.7.1
node version - v6.4.0
npm version -v3.10.6
@Bhuvan: How did you fixed the issue? I am facing same issue(Carthage not found. Install using brew install carthage". ) when I start server through eclipse using appiumDriverLocalService. But If I start Appium server on terminal on mac & then try to hit the code the iOS app works fine for me. Please help for the same.
Make sure the PATH variable is available for all the processes–> bash profile and .bashrc should be
set to /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin.