How to set the data path in Appium?
capability.setCapability("derivedDataPath","path");
Use along with "usePrebuiltWDA" capability and choose where to search for the existing WDA app. If the capability is not set then Xcode will store the derived data in the default root taken from preferences.