Could you help me resolve an error that says "errorMsg":"Oops, capability not supported"

I found an Original error: {“errorMsg”:"Oops, capability not supported. Could you help me resolve the error?

Caps:

 desiredCaps.setCapability(AUTOMATION_NAME, "XCUITest");
        desiredCaps.setCapability("app", "stock");
        desiredCaps.setCapability("platformName", "ios");
        desiredCaps.setCapability(DEVICE_NAME, "iPad (5th generation)");
        desiredCaps.setCapability(PLATFORM_VERSION, "15.0");
        desiredCaps.setCapability(BUNDLE_ID, APPLE_NEWS);
        desiredCaps.setCapability("fullReset", true);
        desiredCaps.setCapability("region", "us");

Hi Miro Vasil,

Thanks for sharing the error message you’re getting and the capabilties you’re passing. Please refer below for the supported set of capabilities:

capabilities.setCapability("app", "stock"); capabilities.setCapability("bundleId","com.apple.news"); capabilities.setCapability("platformName", "ios"); capabilities.setCapability("deviceName", "iPad (5th generation)"); capabilities.setCapability("platformVersion", "10.3"); capabilities.setCapability("name", "XCUITest"); desiredCaps.setCapability("fullReset", true); capabilities.setCapability("geoLocation", "US");

Also, we would recommend you to visit the below document to ensure you’re passing the correct capabilities in your script: