Could you please let me know how did resolve this issue, same issue i am facing.
Thanks it worked . I underwent certificate issue on solving I need to update my team in ‘signings&capability’ for webdriver agent project in xcode. That was missing , after that it was working fine. Thanks.
@venkat4 check your webdriveragent xcode project, mostly that will be issue for you I think
Hi karunakar- aim also getting the saem error. Please help if you the solution.
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: 2021-05-12 14:07:35.523 xcodebuild[78359:12003961] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 “The folder “WebDriverAgentRunner_iphoneos14.4-arm64.xctestrun” doesn’t exist.” UserInfo={NSFilePath=/Users/dautomation/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products/WebDriverAgentRunner_iphoneos14.4-arm64.xctestrun, NSUserStringVariant=Folder, NSUnderlyingError=0x7ff386ca2740 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}} ** TEST BUILD FAILED ** 2021-05-12 14:07:35.538 xcodebuild[78359:12003835] IDETestOperationsObserverDebug: Writing diagnostic log for test session to: /Users/dautomation/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.05.12_14-07-35-+0200.xcresult/Staging/2_Test/Diagnostics/WebDriverAgentRunner-94955281-E571-4AD7-BB4B-A47EABC6B628/WebDriverAgentRunner-D8D80355-9303-4267-BBBC-AA66E240F468/Session-WebDriverAgentRunner-2021-05-12_140735-YOpZwe.log 2021-05-12 14:07:35.539 xcodebuild[78359:12003759] [MT] IDETestOperationsObserverDebug: (BBAF54B9-ABD5-48C4-840C-8256F39825E2) Beginning test session WebDriverAgentRunner-BBAF54B9-ABD5-48C4-840C-8256F39825E2 at 2021-05-12 14:07:35.538 with Xcode 12D4e on target <DVTiOSDevice (0x7ff387787650), Shoprite’s iPhone, iPhone, 14.4 (18D52), 36408a21f5fd8a5e8a06f210fcfb6ad4890e8525> { deviceSerialNumber: F71Y6ZSRHG7F identifier: 36408a21f5fd8a5e8a06f210fcfb6ad4890e8525 deviceClass: iPhone deviceName: Shoprite’s iPhone deviceIdentifier: 36408a21f5fd8a5e8a06f210fcfb6ad4890e8525 productVersion: 14.4 buildVersion: 18D52 deviceSoftwareVersion: 14.4 (18D52) deviceArchitecture: arm64 deviceTotalCapacity: 25221414912 deviceAvailableCapacity: 14180786176 deviceIsTransient: NO ignored: NO deviceIsBusy: NO deviceIsPaired: YES deviceIsActivated: YES deviceActivationState: Activated isPasscodeLocked: NO deviceType: <DVTDeviceType:0x7ff3844faa90 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: Shoprites-iPhone.local. bonjourServiceName: e8:36:17:26:6e:94@fe80::ea36:17ff:fe26:6e94._apple-mobdev2._tcp.local. activeProxiedDevice: (null) } (14.4 (18D52)) 2021-05-12 14:07:35.653 xcodebuild[78359:12003759] [MT] IDETestOperationsObserverDebug: (BBAF54B9-ABD5-48C4-840C-8256F39825E2) Finished requesting crash reports. Continuing with testing. *** If you believe this error represents a bug, please attach the result bundle at /Users/dautomation/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.05.12_14-07-35-+0200.xcresult 2021-05-12 14:07:35.677 xcodebuild[78359:12003759] [MT] IDETestOperationsObserverDebug: 0.144 elapsed – Testing started completed. 2021-05-12 14:07:35.677 xcodebuild[78359:12003759] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec – start 2021-05-12 14:07:35.677 xcodebuild[78359:12003759] [MT] IDETestOperationsObserverDebug: 0.144 sec, +0.144 sec – end Test session results, code coverage, and logs: /Users/dautomation/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.05.12_14-07-35-+0200.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. If you believe this error represents a bug, please attach the result bundle at /Users/dautomation/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.05.12_14-07-35-+0200.xcresult. (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. 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.
Hey pawan, did you get it resolved. Please help.
iam getting the same
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: 2021-05-12 14:07:35.523 xcodebuild[78359:12003961] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 “The folder “WebDriverAgentRunner_iphoneos14.4-arm64.xctestrun” doesn’t exist.” UserInfo={NSFilePath=/Users/dautomation/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products/WebDriverAgentRunner_iphoneos14.4-arm64.xctestrun, NSUserStringVariant=Folder, NSUnderlyingError=0x7ff386ca2740 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}} ** TEST BUILD FAILED ** 2021-05-12 14:07:35.538 xcodebuild[78359:12003835] IDETestOperationsObserverDebug: Writing diagnostic log for test session to: /Users/dautomation/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.05.12_14-07-35-+0200.xcresult/Staging/2_Test/Diagnostics/WebDriverAgentRunner-94955281-E571-4AD7-BB4B-A47EABC6B628/WebDriverAgentRunner-D8D80355-9303-4267-BBBC-AA66E240F468/Session-WebDriverAgentRunner-2021-05-12_140735-YOpZwe.log 2021-05-12 14:07:35.539 xcodebuild[78359:12003759] [MT] IDETestOperationsObserverDebug: (BBAF54B9-ABD5-48C4-840C-8256F39825E2) Beginning test session WebDriverAgentRunner-BBAF54B9-ABD5-48C4-840C-8256F39825E2 at 2021-05-12 14:07:35.538 with Xcode 12D4e on target <DVTiOSDevice (0x7ff387787650), Shoprite’s iPhone, iPhone, 14.4 (18D52), 36408a21f5fd8a5e8a06f210fcfb6ad4890e8525> { deviceSerialNumber: F71Y6ZSRHG7F identifier: 36408a21f5fd8a5e8a06f210fcfb6ad4890e8525 deviceClass: iPhone deviceName: Shoprite’s iPhone deviceIdentifier: 36408a21f5fd8a5e8a06f210fcfb6ad4890e8525 productVersion: 14.4 buildVersion: 18D52 deviceSoftwareVersion: 14.4 (18D52) deviceArchitecture: arm64 deviceTotalCapacity: 25221414912 deviceAvailableCapacity: 14180786176 deviceIsTransient: NO ignored: NO deviceIsBusy: NO deviceIsPaired: YES deviceIsActivated: YES deviceActivationState: Activated isPasscodeLocked: NO deviceType: <DVTDeviceType:0x7ff3844faa90 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: Shoprites-iPhone.local. bonjourServiceName: e8:36:17:26:6e:94@fe80::ea36:17ff:fe26:6e94._apple-mobdev2._tcp.local. activeProxiedDevice: (null) } (14.4 (18D52)) 2021-05-12 14:07:35.653 xcodebuild[78359:12003759] [MT] IDETestOperationsObserverDebug: (BBAF54B9-ABD5-48C4-840C-8256F39825E2) Finished requesting crash reports. Continuing with testing. *** If you believe this error represents a bug, please attach the result bundle at /Users/dautomation/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.05.12_14-07-35-+0200.xcresult 2021-05-12 14:07:35.677 xcodebuild[78359:12003759] [MT] IDETestOperationsObserverDebug: 0.144 elapsed – Testing started completed. 2021-05-12 14:07:35.677 xcodebuild[78359:12003759] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec – start 2021-05-12 14:07:35.677 xcodebuild[78359:12003759] [MT] IDETestOperationsObserverDebug: 0.144 sec, +0.144 sec – end Test session results, code coverage, and logs: /Users/dautomation/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.05.12_14-07-35-+0200.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. If you believe this error represents a bug, please attach the result bundle at /Users/dautomation/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.05.12_14-07-35-+0200.xcresult. (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. 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.
i am getting this bro…it could be certificate issue as well? what must. i ask the developer?
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: 2021-05-12 14:17:41.905 xcodebuild[78759:12012639] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 “The folder “WebDriverAgentRunner_iphoneos14.4-arm64.xctestrun” doesn’t exist.” UserInfo={NSFilePath=/Users/dautomation/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products/WebDriverAgentRunner_iphoneos14.4-arm64.xctestrun, NSUserStringVariant=Folder, NSUnderlyingError=0x7fd411cbe290 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}} ** TEST BUILD FAILED ** 2021-05-12 14:17:41.918 xcodebuild[78759:12012633] IDETestOperationsObserverDebug: Writing diagnostic log for test session to: /Users/dautomation/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.05.12_14-17-41-+0200.xcresult/Staging/2_Test/Diagnostics/WebDriverAgentRunner-EE13EC9D-8292-453C-8AA9-CDB26278092F/WebDriverAgentRunner-8F6BFC69-CCDA-4A9F-9D3D-95B35459D636/Session-WebDriverAgentRunner-2021-05-12_141741-EDZyyy.log 2021-05-12 14:17:41.919 xcodebuild[78759:12012566] [MT] IDETestOperationsObserverDebug: (7C7FECA3-7291-4178-8B2C-4303385E0C15) Beginning test session WebDriverAgentRunner-7C7FECA3-7291-4178-8B2C-4303385E0C15 at 2021-05-12 14:17:41.919 with Xcode 12D4e on target <DVTiOSDevice (0x7fd41247ac50), Shoprite’s iPhone, iPhone, 14.4 (18D52), 36408a21f5fd8a5e8a06f210fcfb6ad4890e8525> { deviceSerialNumber: F71Y6ZSRHG7F identifier: 36408a21f5fd8a5e8a06f210fcfb6ad4890e8525 deviceClass: iPhone deviceName: Shoprite’s iPhone deviceIdentifier: 36408a21f5fd8a5e8a06f210fcfb6ad4890e8525 productVersion: 14.4 buildVersion: 18D52 deviceSoftwareVersion: 14.4 (18D52) deviceArchitecture: arm64 deviceTotalCapacity: 25221414912 deviceAvailableCapacity: 14177947648 deviceIsTransient: NO ignored: NO deviceIsBusy: NO deviceIsPaired: YES deviceIsActivated: YES deviceActivationState: Activated isPasscodeLocked: NO deviceType: <DVTDeviceType:0x7fd40fdf4750 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: Shoprites-iPhone.local. bonjourServiceName: e8:36:17:26:6e:94@fe80::ea36:17ff:fe26:6e94._apple-mobdev2._tcp.local. activeProxiedDevice: (null) } (14.4 (18D52)) 2021-05-12 14:17:42.026 xcodebuild[78759:12012566] [MT] IDETestOperationsObserverDebug: (7C7FECA3-7291-4178-8B2C-4303385E0C15) Finished requesting crash re
xCode Version 13.4.1 + Appium 1.22 with this version configuration it worked for me. This looks to be compatibility issue need to try out with different xcode and appium versions
Hey guys,
I’m new here, I’m using the Appium inspector and appium server (2.0.1), and when trying to load the app using an iPhone 14 Pro simulator I’m getting this error:
“Failed to create session. 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:”
The thing is, the seems to be installed on the simulator and then Im getting this error
This is my Setup:
I am having this problem also. My version of Xcode is…
% xcrun --version
xcrun version 67.
% xcode-select -v
xcode-select version 2405.
Also reading this tip sheet: https://medium.com/tauk-blog/setup-guide-for-appium-real-ios-device-e35eabbf630e
try updating appium How To Upgrade Appium - GeeksforGeeks