Unable to start application for iOS real device

Operating System

  • For example: Mac OS Catalina

Katalon Studio Version

7.3.0

Katalon Studio logs

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:

2020-04-15 15:24:28.908 xcodebuild[2744:82499] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 “The folder “WebDriverAgentRunner_iphoneos13.4-arm64e.xctestrun” doesn’t exist.” UserInfo={NSFilePath=/Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Build/Products/WebDriverAgentRunner_iphoneos13.4-arm64e.xctestrun, NSUserStringVariant=Folder, NSUnderlyingError=0x7fc1053557b0 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}
** TEST BUILD FAILED **
2020-04-15 15:24:28.920 xcodebuild[2744:82490] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2020.04.15_15-24-28-+0530.xcresult/Staging/2_Test/Diagnostics/WebDriverAgentRunner-C0523901-BBC4-4973-8214-976F78B8E902/WebDriverAgentRunner-7373EA85-2E72-4946-941C-15EDFCF2C050/Session-WebDriverAgentRunner-2020-04-15_152428-lw99c6.log
2020-04-15 15:24:28.920 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: (398049A1-AC3E-4B3E-BAE9-96F7B7486C64) Beginning test session WebDriverAgentRunner-398049A1-AC3E-4B3E-BAE9-96F7B7486C64 at 2020-04-15 15:24:28.920 with Xcode 11E146 on target :iphone:<DVTiOSDevice (0x7fc10c6e82c0), iPhone, iPhone, 13.1.3 (17A878), 00008030-0004654C1182802E> {
deviceSerialNumber: FK2ZK9XYN70R
identifier: 00008030-0004654C1182802E
deviceClass: iPhone
deviceName: iPhone
deviceIdentifier: 00008030-0004654C1182802E
productVersion: 13.1.3
buildVersion: 17A878
deviceSoftwareVersion: 13.1.3 (17A878)
deviceArchitecture: arm64e
deviceTotalCapacity: 57999921152
deviceAvailableCapacity: 47809523712
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsPaired: YES
deviceIsActivated: YES
deviceActivationState: Activated
isPasscodeLocked: NO
deviceType: <DVTDeviceType:0x7fc10c2d79e0 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1
)
applications: (null)
provisioningProfiles: (null)
hasInternalSupport: NO
hasWritableSystem: NO
isSupportedOS: YES
bootArgs: (null)
nextBootArgs: (null)
connected: YES
isWirelessEnabled: NO
connectionType: direct
hostname: (null)
bonjourServiceName: f8:ff:c2:ed:df:03@fe80::faff:c2ff:feed:df03._apple-mobdev2._tcp.local.
activeProxiedDevice: (null)
} (13.1.3 (17A878))
2020-04-15 15:24:29.037 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: (398049A1-AC3E-4B3E-BAE9-96F7B7486C64) Finished requesting crash reports. Continuing with testing.
*** If you believe this error represents a bug, please attach the result bundle at /Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2020.04.15_15-24-28-+0530.xcresult
2020-04-15 15:24:29.047 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: 0.131 elapsed – Testing started completed.
2020-04-15 15:24:29.047 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec – start
2020-04-15 15:24:29.047 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: 0.131 sec, +0.131 sec – end
2020-04-15 15:24:29.047 xcodebuild[2744:82438] Error Domain=NSCocoaErrorDomain Code=260 “The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.” UserInfo={NSFilePath=/Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fc10c7d1b70 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}
Test session results, code coverage, and logs:
/Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2020.04.15_15-24-28-+0530.xcresult
Testing failed:
Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the Signing & Capabilities editor.
WebDriverAgentRunner:
WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file. The file doesn’t exist. (Underlying error: The operation couldn’t be completed. No such file or directory)))
** TEST EXECUTE FAILED **
Testing started on ‘iPhone’. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. 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: ‘BLR19C02ZJ36XLVCG.connectify’, ip: ‘fe80:0:0:0:c40:74c9:8144:1d81%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.15.3’, 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:

2020-04-15 15:24:28.908 xcodebuild[2744:82499] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 “The folder “WebDriverAgentRunner_iphoneos13.4-arm64e.xctestrun” doesn’t exist.” UserInfo={NSFilePath=/Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Build/Products/WebDriverAgentRunner_iphoneos13.4-arm64e.xctestrun, NSUserStringVariant=Folder, NSUnderlyingError=0x7fc1053557b0 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}
** TEST BUILD FAILED **
2020-04-15 15:24:28.920 xcodebuild[2744:82490] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2020.04.15_15-24-28-+0530.xcresult/Staging/2_Test/Diagnostics/WebDriverAgentRunner-C0523901-BBC4-4973-8214-976F78B8E902/WebDriverAgentRunner-7373EA85-2E72-4946-941C-15EDFCF2C050/Session-WebDriverAgentRunner-2020-04-15_152428-lw99c6.log
2020-04-15 15:24:28.920 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: (398049A1-AC3E-4B3E-BAE9-96F7B7486C64) Beginning test session WebDriverAgentRunner-398049A1-AC3E-4B3E-BAE9-96F7B7486C64 at 2020-04-15 15:24:28.920 with Xcode 11E146 on target :iphone:<DVTiOSDevice (0x7fc10c6e82c0), iPhone, iPhone, 13.1.3 (17A878), 00008030-0004654C1182802E> {
deviceSerialNumber: FK2ZK9XYN70R
identifier: 00008030-0004654C1182802E
deviceClass: iPhone
deviceName: iPhone
deviceIdentifier: 00008030-0004654C1182802E
productVersion: 13.1.3
buildVersion: 17A878
deviceSoftwareVersion: 13.1.3 (17A878)
deviceArchitecture: arm64e
deviceTotalCapacity: 57999921152
deviceAvailableCapacity: 47809523712
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsPaired: YES
deviceIsActivated: YES
deviceActivationState: Activated
isPasscodeLocked: NO
deviceType: <DVTDeviceType:0x7fc10c2d79e0 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1
)
applications: (null)
provisioningProfiles: (null)
hasInternalSupport: NO
hasWritableSystem: NO
isSupportedOS: YES
bootArgs: (null)
nextBootArgs: (null)
connected: YES
isWirelessEnabled: NO
connectionType: direct
hostname: (null)
bonjourServiceName: f8:ff:c2:ed:df:03@fe80::faff:c2ff:feed:df03._apple-mobdev2._tcp.local.
activeProxiedDevice: (null)
} (13.1.3 (17A878))
2020-04-15 15:24:29.037 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: (398049A1-AC3E-4B3E-BAE9-96F7B7486C64) Finished requesting crash reports. Continuing with testing.
*** If you believe this error represents a bug, please attach the result bundle at /Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2020.04.15_15-24-28-+0530.xcresult
2020-04-15 15:24:29.047 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: 0.131 elapsed – Testing started completed.
2020-04-15 15:24:29.047 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec – start
2020-04-15 15:24:29.047 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: 0.131 sec, +0.131 sec – end
2020-04-15 15:24:29.047 xcodebuild[2744:82438] Error Domain=NSCocoaErrorDomain Code=260 “The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.” UserInfo={NSFilePath=/Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fc10c7d1b70 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}
Test session results, code coverage, and logs:
/Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2020.04.15_15-24-28-+0530.xcresult
Testing failed:
Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the Signing & Capabilities editor.
WebDriverAgentRunner:
WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file. The file doesn’t exist. (Underlying error: The operation couldn’t be completed. No such file or directory)))
** TEST EXECUTE FAILED **
Testing started on ‘iPhone’. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. 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:804:9)
at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:392:37)
at runNextTicks (internal/process/task_queues.js:58:5)
at processImmediate (internal/timers.js:412:9)
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’
System info: host: ‘BLR19C02ZJ36XLVCG.connectify’, ip: ‘fe80:0:0:0:c40:74c9:8144:1d81%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.15.3’, 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:

2020-04-15 15:24:28.908 xcodebuild[2744:82499] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 “The folder “WebDriverAgentRunner_iphoneos13.4-arm64e.xctestrun” doesn’t exist.” UserInfo={NSFilePath=/Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Build/Products/WebDriverAgentRunner_iphoneos13.4-arm64e.xctestrun, NSUserStringVariant=Folder, NSUnderlyingError=0x7fc1053557b0 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}
** TEST BUILD FAILED **
2020-04-15 15:24:28.920 xcodebuild[2744:82490] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2020.04.15_15-24-28-+0530.xcresult/Staging/2_Test/Diagnostics/WebDriverAgentRunner-C0523901-BBC4-4973-8214-976F78B8E902/WebDriverAgentRunner-7373EA85-2E72-4946-941C-15EDFCF2C050/Session-WebDriverAgentRunner-2020-04-15_152428-lw99c6.log
2020-04-15 15:24:28.920 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: (398049A1-AC3E-4B3E-BAE9-96F7B7486C64) Beginning test session WebDriverAgentRunner-398049A1-AC3E-4B3E-BAE9-96F7B7486C64 at 2020-04-15 15:24:28.920 with Xcode 11E146 on target :iphone:<DVTiOSDevice (0x7fc10c6e82c0), iPhone, iPhone, 13.1.3 (17A878), 00008030-0004654C1182802E> {
deviceSerialNumber: FK2ZK9XYN70R
identifier: 00008030-0004654C1182802E
deviceClass: iPhone
deviceName: iPhone
deviceIdentifier: 00008030-0004654C1182802E
productVersion: 13.1.3
buildVersion: 17A878
deviceSoftwareVersion: 13.1.3 (17A878)
deviceArchitecture: arm64e
deviceTotalCapacity: 57999921152
deviceAvailableCapacity: 47809523712
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsPaired: YES
deviceIsActivated: YES
deviceActivationState: Activated
isPasscodeLocked: NO
deviceType: <DVTDeviceType:0x7fc10c2d79e0 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1
)
applications: (null)
provisioningProfiles: (null)
hasInternalSupport: NO
hasWritableSystem: NO
isSupportedOS: YES
bootArgs: (null)
nextBootArgs: (null)
connected: YES
isWirelessEnabled: NO
connectionType: direct
hostname: (null)
bonjourServiceName: f8:ff:c2:ed:df:03@fe80::faff:c2ff:feed:df03._apple-mobdev2._tcp.local.
activeProxiedDevice: (null)
} (13.1.3 (17A878))
2020-04-15 15:24:29.037 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: (398049A1-AC3E-4B3E-BAE9-96F7B7486C64) Finished requesting crash reports. Continuing with testing.
*** If you believe this error represents a bug, please attach the result bundle at /Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2020.04.15_15-24-28-+0530.xcresult
2020-04-15 15:24:29.047 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: 0.131 elapsed – Testing started completed.
2020-04-15 15:24:29.047 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec – start
2020-04-15 15:24:29.047 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: 0.131 sec, +0.131 sec – end
2020-04-15 15:24:29.047 xcodebuild[2744:82438] Error Domain=NSCocoaErrorDomain Code=260 “The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.” UserInfo={NSFilePath=/Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fc10c7d1b70 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}
Test session results, code coverage, and logs:
/Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2020.04.15_15-24-28-+0530.xcresult
Testing failed:
Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the Signing & Capabilities editor.
WebDriverAgentRunner:
WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file. The file doesn’t exist. (Underlying error: The operation couldn’t be completed. No such file or directory)))
** TEST EXECUTE FAILED **
Testing started on ‘iPhone’. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. 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: ‘BLR19C02ZJ36XLVCG.connectify’, ip: ‘fe80:0:0:0:c40:74c9:8144:1d81%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.15.3’, 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:

2020-04-15 15:24:28.908 xcodebuild[2744:82499] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 “The folder “WebDriverAgentRunner_iphoneos13.4-arm64e.xctestrun” doesn’t exist.” UserInfo={NSFilePath=/Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Build/Products/WebDriverAgentRunner_iphoneos13.4-arm64e.xctestrun, NSUserStringVariant=Folder, NSUnderlyingError=0x7fc1053557b0 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}
** TEST BUILD FAILED **
2020-04-15 15:24:28.920 xcodebuild[2744:82490] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2020.04.15_15-24-28-+0530.xcresult/Staging/2_Test/Diagnostics/WebDriverAgentRunner-C0523901-BBC4-4973-8214-976F78B8E902/WebDriverAgentRunner-7373EA85-2E72-4946-941C-15EDFCF2C050/Session-WebDriverAgentRunner-2020-04-15_152428-lw99c6.log
2020-04-15 15:24:28.920 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: (398049A1-AC3E-4B3E-BAE9-96F7B7486C64) Beginning test session WebDriverAgentRunner-398049A1-AC3E-4B3E-BAE9-96F7B7486C64 at 2020-04-15 15:24:28.920 with Xcode 11E146 on target :iphone:<DVTiOSDevice (0x7fc10c6e82c0), iPhone, iPhone, 13.1.3 (17A878), 00008030-0004654C1182802E> {
deviceSerialNumber: FK2ZK9XYN70R
identifier: 00008030-0004654C1182802E
deviceClass: iPhone
deviceName: iPhone
deviceIdentifier: 00008030-0004654C1182802E
productVersion: 13.1.3
buildVersion: 17A878
deviceSoftwareVersion: 13.1.3 (17A878)
deviceArchitecture: arm64e
deviceTotalCapacity: 57999921152
deviceAvailableCapacity: 47809523712
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsPaired: YES
deviceIsActivated: YES
deviceActivationState: Activated
isPasscodeLocked: NO
deviceType: <DVTDeviceType:0x7fc10c2d79e0 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1
)
applications: (null)
provisioningProfiles: (null)
hasInternalSupport: NO
hasWritableSystem: NO
isSupportedOS: YES
bootArgs: (null)
nextBootArgs: (null)
connected: YES
isWirelessEnabled: NO
connectionType: direct
hostname: (null)
bonjourServiceName: f8:ff:c2:ed:df:03@fe80::faff:c2ff:feed:df03._apple-mobdev2._tcp.local.
activeProxiedDevice: (null)
} (13.1.3 (17A878))
2020-04-15 15:24:29.037 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: (398049A1-AC3E-4B3E-BAE9-96F7B7486C64) Finished requesting crash reports. Continuing with testing.
*** If you believe this error represents a bug, please attach the result bundle at /Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2020.04.15_15-24-28-+0530.xcresult
2020-04-15 15:24:29.047 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: 0.131 elapsed – Testing started completed.
2020-04-15 15:24:29.047 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec – start
2020-04-15 15:24:29.047 xcodebuild[2744:82438] [MT] IDETestOperationsObserverDebug: 0.131 sec, +0.131 sec – end
2020-04-15 15:24:29.047 xcodebuild[2744:82438] Error Domain=NSCocoaErrorDomain Code=260 “The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.” UserInfo={NSFilePath=/Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fc10c7d1b70 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}
Test session results, code coverage, and logs:
/Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2020.04.15_15-24-28-+0530.xcresult
Testing failed:
Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the Signing & Capabilities editor.
WebDriverAgentRunner:
WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file. The file doesn’t exist. (Underlying error: The operation couldn’t be completed. No such file or directory)))
** TEST EXECUTE FAILED **
Testing started on ‘iPhone’. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. 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:804:9)
at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:392:37)
at runNextTicks (internal/process/task_queues.js:58:5)
at processImmediate (internal/timers.js:412:9)
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’
System info: host: ‘BLR19C02ZJ36XLVCG.connectify’, ip: ‘fe80:0:0:0:c40:74c9:8144:1d81%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.15.3’, 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.(RemoteWebDriver.java:131)
at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:84)
at io.appium.java_client.ios.IOSDriver.(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:458)
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:

2020-04-15 15:24:28.908 xcodebuild[2744:82499] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 “The folder “WebDriverAgentRunner_iphoneos13.4-arm64e.xctestrun” doesn’t exist.” UserInfo={NSFilePath=/Users/sabyasachi/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Build/Products/WebDriverAgentRunner_iphoneos13.4-arm64e.xctestrun, NSUserStringVariant=Folder, NSUnderlyingError=0x7fc1053557b0 {Error

Environment (for Mobile testing)

  • Appium version: 1.17.0

  • Mobile platform/version under test: iOS 11

  • Real device or emulator/simulator: iPhone 11pro real or iPhone 8 simulator

  • Xcode version (for iOS): Xcode 11.4

Steps to reproduce

Create test case and start recording

Screenshots / Videos

@Chris_Trevarthen I am facing same issue if you can help

Hi @santwana.bhati,

If you’re seeing an issue related to the WebDriverAgent like the logs in the original post show, please make sure you follow the instructions here to build the WebDriverAgent project:

If that doesn’t work, I have had luck with Appium 1.15.1, so you might want to try switching to that:

npm install -g appium@1.15.1

Hope this helps,

Chris

Thank you Chris.
Issue resolved.

1 Like