Unable to create a new remote session (iOS)

Greetings Katalon Community!

I’m currently experiencing issues with launching an application I want to test on my iOS device.
So far, I have created successful builds on Xcode of both my WebDriverAgentLib folder and WebDriverAgentRunner file. When I started the mobile recorder on Katalon Studios, I also successfully installed my .ipa file that I want to test. Furthermore, I am able to launch and navigate the application on my phone (manually) with no issues. However, I am unable to start the application on Katalon studios and received the following system log:

java.util.concurrent.ExecutionException: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

xcodebuild error message:

2019-10-14 13:25:00.328 xcodebuild[24153:304555] Error Domain=com.apple.platform.iphoneos Code=-12 “Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner” UserInfo={NSLocalizedDescription=Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner, NSUnderlyingError=0x7ffa2914f130 {Error Domain=com.apple.dt.deviceprocesscontrolservice Code=2 “Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed.” UserInfo={NSLocalizedFailureReason=The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.ubii.ubii.WebDriverAgentRunner.xctrunner’., NSLocalizedDescription=Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed., NSUnderlyingError=0x7ffa28e71db0 {Error Domain=FBSOpenApplicationErrorDomain Code=3 “Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.” UserInfo={BSErrorCodeDescription=Security, NSLocalizedFailureReason=Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.}}}}}

Test session results, code coverage, and logs:

/Users/ac/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2019.10.14_13-24-56–0400.xcresult

Testing failed:

WebDriverAgentRunner:

WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner. (Underlying error: Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed. The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.ubii.ubii.WebDriverAgentRunner.xctrunner’. (Underlying error: The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.))))

** TEST EXECUTE FAILED **

Testing started on ‘iPhone’. Make sure you follow the tutorial at appium-xcuitest-driver/real-device-config.md at master · appium/appium-xcuitest-driver · GitHub. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’

System info: host: ‘Danielas-MBP’, ip: ‘2600:1700:1df0:3090:0:0:0:694%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.15’, java.version: ‘1.8.0_181’

Driver info: driver.version: IOSDriver

remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

xcodebuild error message:

2019-10-14 13:25:00.328 xcodebuild[24153:304555] Error Domain=com.apple.platform.iphoneos Code=-12 “Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner” UserInfo={NSLocalizedDescription=Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner, NSUnderlyingError=0x7ffa2914f130 {Error Domain=com.apple.dt.deviceprocesscontrolservice Code=2 “Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed.” UserInfo={NSLocalizedFailureReason=The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.ubii.ubii.WebDriverAgentRunner.xctrunner’., NSLocalizedDescription=Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed., NSUnderlyingError=0x7ffa28e71db0 {Error Domain=FBSOpenApplicationErrorDomain Code=3 “Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.” UserInfo={BSErrorCodeDescription=Security, NSLocalizedFailureReason=Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.}}}}}

Test session results, code coverage, and logs:

/Users/ac/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2019.10.14_13-24-56–0400.xcresult

Testing failed:

WebDriverAgentRunner:

WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner. (Underlying error: Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed. The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.ubii.ubii.WebDriverAgentRunner.xctrunner’. (Underlying error: The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.))))

** TEST EXECUTE FAILED **

Testing started on ‘iPhone’. Make sure you follow the tutorial at appium-xcuitest-driver/real-device-config.md at master · appium/appium-xcuitest-driver · GitHub. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:826:9)

at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:388:37)

Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’

System info: host: ‘Danielas-MBP’, ip: ‘2600:1700:1df0:3090:0:0:0:694%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.15’, java.version: ‘1.8.0_181’

Driver info: driver.version: IOSDriver

at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:49)

at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12.run(MobileLocalAppComposite.java:474)

at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

xcodebuild error message:

2019-10-14 13:25:00.328 xcodebuild[24153:304555] Error Domain=com.apple.platform.iphoneos Code=-12 “Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner” UserInfo={NSLocalizedDescription=Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner, NSUnderlyingError=0x7ffa2914f130 {Error Domain=com.apple.dt.deviceprocesscontrolservice Code=2 “Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed.” UserInfo={NSLocalizedFailureReason=The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.ubii.ubii.WebDriverAgentRunner.xctrunner’., NSLocalizedDescription=Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed., NSUnderlyingError=0x7ffa28e71db0 {Error Domain=FBSOpenApplicationErrorDomain Code=3 “Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.” UserInfo={BSErrorCodeDescription=Security, NSLocalizedFailureReason=Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.}}}}}

Test session results, code coverage, and logs:

/Users/ac/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2019.10.14_13-24-56–0400.xcresult

Testing failed:

WebDriverAgentRunner:

WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner. (Underlying error: Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed. The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.ubii.ubii.WebDriverAgentRunner.xctrunner’. (Underlying error: The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.))))

** TEST EXECUTE FAILED **

Testing started on ‘iPhone’. Make sure you follow the tutorial at appium-xcuitest-driver/real-device-config.md at master · appium/appium-xcuitest-driver · GitHub. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’

System info: host: ‘Danielas-MBP’, ip: ‘2600:1700:1df0:3090:0:0:0:694%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.15’, java.version: ‘1.8.0_181’

Driver info: driver.version: IOSDriver

remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

xcodebuild error message:

2019-10-14 13:25:00.328 xcodebuild[24153:304555] Error Domain=com.apple.platform.iphoneos Code=-12 “Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner” UserInfo={NSLocalizedDescription=Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner, NSUnderlyingError=0x7ffa2914f130 {Error Domain=com.apple.dt.deviceprocesscontrolservice Code=2 “Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed.” UserInfo={NSLocalizedFailureReason=The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.ubii.ubii.WebDriverAgentRunner.xctrunner’., NSLocalizedDescription=Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed., NSUnderlyingError=0x7ffa28e71db0 {Error Domain=FBSOpenApplicationErrorDomain Code=3 “Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.” UserInfo={BSErrorCodeDescription=Security, NSLocalizedFailureReason=Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.}}}}}

Test session results, code coverage, and logs:

/Users/ac/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2019.10.14_13-24-56–0400.xcresult

Testing failed:

WebDriverAgentRunner:

WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner. (Underlying error: Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed. The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.ubii.ubii.WebDriverAgentRunner.xctrunner’. (Underlying error: The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.))))

** TEST EXECUTE FAILED **

Testing started on ‘iPhone’. Make sure you follow the tutorial at appium-xcuitest-driver/real-device-config.md at master · appium/appium-xcuitest-driver · GitHub. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:826:9)

at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:388:37)

Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’

System info: host: ‘Danielas-MBP’, ip: ‘2600:1700:1df0:3090:0:0:0:694%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.15’, java.version: ‘1.8.0_181’

Driver info: driver.version: IOSDriver

at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208)

at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)

at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)

at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)

at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)

at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)

at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)

at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:38)

at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:84)

at io.appium.java_client.ios.IOSDriver.<init>(IOSDriver.java:85)

at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:495)

at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:479)

at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:460)

at com.kms.katalon.composer.mobile.objectspy.dialog.MobileInspectorController.startMobileApp(MobileInspectorController.java:191)

at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12$1.call(MobileLocalAppComposite.java:479)

at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.startThreadAndWait(ProgressMonitorDialogWithThread.java:36)

at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:48)

… 2 more

Caused by: java.lang.reflect.InvocationTargetException

at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)

… 20 more

Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

xcodebuild error message:

2019-10-14 13:25:00.328 xcodebuild[24153:304555] Error Domain=com.apple.platform.iphoneos Code=-12 “Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner” UserInfo={NSLocalizedDescription=Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner, NSUnderlyingError=0x7ffa2914f130 {Error Domain=com.apple.dt.deviceprocesscontrolservice Code=2 “Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed.” UserInfo={NSLocalizedFailureReason=The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.ubii.ubii.WebDriverAgentRunner.xctrunner’., NSLocalizedDescription=Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed., NSUnderlyingError=0x7ffa28e71db0 {Error Domain=FBSOpenApplicationErrorDomain Code=3 “Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.” UserInfo={BSErrorCodeDescription=Security, NSLocalizedFailureReason=Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.}}}}}

Test session results, code coverage, and logs:

/Users/ac/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2019.10.14_13-24-56–0400.xcresult

Testing failed:

WebDriverAgentRunner:

WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner. (Underlying error: Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed. The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.ubii.ubii.WebDriverAgentRunner.xctrunner’. (Underlying error: The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.))))

** TEST EXECUTE FAILED **

Testing started on ‘iPhone’. Make sure you follow the tutorial at appium-xcuitest-driver/real-device-config.md at master · appium/appium-xcuitest-driver · GitHub. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’

System info: host: ‘Danielas-MBP’, ip: ‘2600:1700:1df0:3090:0:0:0:694%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.15’, java.version: ‘1.8.0_181’

Driver info: driver.version: IOSDriver

remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

xcodebuild error message:

2019-10-14 13:25:00.328 xcodebuild[24153:304555] Error Domain=com.apple.platform.iphoneos Code=-12 “Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner” UserInfo={NSLocalizedDescription=Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner, NSUnderlyingError=0x7ffa2914f130 {Error Domain=com.apple.dt.deviceprocesscontrolservice Code=2 “Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed.” UserInfo={NSLocalizedFailureReason=The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.ubii.ubii.WebDriverAgentRunner.xctrunner’., NSLocalizedDescription=Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed., NSUnderlyingError=0x7ffa28e71db0 {Error Domain=FBSOpenApplicationErrorDomain Code=3 “Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.” UserInfo={BSErrorCodeDescription=Security, NSLocalizedFailureReason=Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.}}}}}

Test session results, code coverage, and logs:

/Users/ac/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2019.10.14_13-24-56–0400.xcresult

Testing failed:

WebDriverAgentRunner:

WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner. (Underlying error: Request to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner failed. The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.ubii.ubii.WebDriverAgentRunner.xctrunner’. (Underlying error: The operation couldn’t be completed. Unable to launch com.ubii.ubii.WebDriverAgentRunner.xctrunner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.))))

** TEST EXECUTE FAILED **

Testing started on ‘iPhone’. Make sure you follow the tutorial at appium-xcuitest-driver/real-device-config.md at master · appium/appium-xcuitest-driver · GitHub. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:826:9)

at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:388:37)

at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)

at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)

at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)

… 21 more

If anyone has any experience with this error or can provide some useful feedback, that would be greatly appreciated

A lack of a valid communications path can prevent a client from connecting to a remote desktop session. The easiest way to diagnose this issue is through the process of elimination.

First, try to establish a session from a client that has been able to successfully connect in the past. The goal is to find out if the problem is specific to an individual client, the network or a terminal server/Windows server.

If you suspect the network might be to blame, try to narrow down the scope of the issue to find the root cause. In doing so, you might discover that the problem affects wireless connections but not wired ones. Likewise, you may discover the problem is unique to VPN traffic or a particular subnet.

Regards,
Rachel Gomez