Appium connecting with real iOS device but giving Xcode error

Guys I trying appium with real device but not connecting giving that error I don’t know why?
My capabilities are ;

IOSDriver driver;
DesiredCapabilities d =new DesiredCapabilities();
d.setCapability(MobileCapabilityType.AUTOMATION_NAME, “XCUITest”);
d.setCapability(MobileCapabilityType.PLATFORM_NAME, “iOS”);
d.setCapability(MobileCapabilityType.DEVICE_NAME, “iPhone”);
d.setCapability(“xcodeSigningId”,“iPhone Developer”);
d.setCapability(MobileCapabilityType.APP, “/Users/Try/Library/Developer/Xcode/DerivedData/Try-ajrzkpqqgbk/Build/Products/Debug-iphoneos/”);
d.setCapability(MobileCapabilityType.NO_RESET, false);
d.setCapability(“autoAcceptAlerts”, true);
d.setCapability(“isHeadless”, false);
d.setCapability(“useNewWDA”, true);

    driver=new IOSDriver<>(new URL(""),d);

And my appium server logs.

Have you ever started Xcode? Having it installed is not enough. You need to open and accept EULA, and then install command line tools.

@wreed Yes ofcourse I started in Xcode before but I don’t know EULA and command line tools ? How can I install them and accept EULA.

If you’ve opened it you’ve accepted. This answer is old but I believe all still applies for command line tools:

1 Like