Use the below configuration which will solve your problem:
{
 “platformName”: “iOS”,
 “platformVersion”: “10.2.1",
 “deviceName”: “------”,
 “udid”: “fdbe0d55ced1fd6fa842681b6a058438573fb762",
 “app”: “/Users/----/---/---/---.ipa”,
 “automationName”: “XCUITest”
}
Based on app path, it will find the app to be loaded, also you have to provide the iOS version(XCode ios simulator version for simulator/ device OS version for device).