Getting this error when running on real Device
WebdriverAgent is build successfully with correct provisioning profile.
Neither WebDriverApp is being installed when WebDriverAgent gets succeeded on real device.
Logs
https://gist.github.com/findmanish/bfb903f5fc9ffbb6faebec1142893ae3
Can you set the capability showXcodeLog = true and repost the gist.
@findmanish did you resolve this issue, i am getting same exact below error
[XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". 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 XCUITestDriver.quitAndUninstall$ (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:395:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". 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 XCUITestDriver.quitAndUninstall$ (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:395:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
[debug] [XCUITest] 'pgrep -nif xcodebuild.*8aac5844172ab9be5989a408b784bddb3e735ae8' didn't detect any matching processes. Return code: 1
[debug] [XCUITest] Cannot find xcodebuild's process id, so unable to retrieve DerivedData folder path
[XCUITest] No WebDriverAgent derived data available, so unable to clear system files
[debug] [iOSLog] Stopping iOS log capture
@chanugithub No.Not yet...Still facing
@findmanish okay please Let me know if you resolve it, thanks
@findmanish Finally i was able to find the solution, it was actually Apple certificates in key chain access which now i set to 'system default' and previously it was in 'Always trust' mode, are you able to resolve it, let me know there is another workaround too
Hi, I'm experiencing the exact same error. I've checked all my certificates and confirmed all were already system default. So there should be some other reason. Please let me know if you have any idea?
Hi,
Even I am facing same error. I have checked all certificates and all of them are system default . Please let me know if there is any alternative solution for this issue.
Hi, here is how I've solved the issue:
Applications/Appium from FinderShow Package ContentsContents\Resources\app\node_modules\appium\node_modules/appium-xcuitest-driver/WebDriverAgentWebDriverAgent.xcodeproj fileIn my case the error code 65 is raised for WebDriverAgent not my bundle, but I lost so much time because I all thought the signing issue is with my bundle
It took me forever to figure this out! Thanks to @okankurtulus it was these steps above helped me run. in my case the error code 65 was raised for WebDriverAgent not my bundle as well. We need a different error code to let others know.
Hi,
I am also facing the same issue trying to run the script on real device.
OS: 10.13.1
Xcode: 9.4.1
node: v10.7.0
appium: 1.6.2
capabilities.setCapability(MobileCapabilityType.APPIUM_VERSION, "1.6.2");
capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "9.3.5");
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "Himanshu Phirke iPad");
capabilities.setCapability(MobileCapabilityType.UDID,"XXXXd938649f9640a0460d10c93ae95bcddee857");(manually changed)
capabilities.setCapability(MobileCapabilityType.APP, iapp.getAbsolutePath());
capabilities.setCapability(IOSMobileCapabilityType.LAUNCH_TIMEOUT,500000);
capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME,AutomationName.IOS_XCUI_TEST);
capabilities.setCapability("showXcodeLog", true);
capabilities.setCapability("xcodeSigningId", "iPhone Developer");
capabilities.setCapability("xcodeOrgId", "XXXHF532JT"); (manually changed)
when I am and trying to build the project from command line using command:
"xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=XXXXd938649f9640a0460d10c93ae95bcddee857' test"
it is showing following error:
CommandLineBuildError.docx
Note: When I am doing 'Clean' and 'Build' in xcode it get build successfully.
After building in xcode if i am trying to run my test in eclipse, it is displaying following error:
Command duration or timeout: 33.00 seconds
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T15:15:03.216Z'
System info: host: 'syn-macmini-03.xxxrzipune.local', ip: '2001:df0:d300:212:e54c:79e3:75cb:5c00%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.6', java.version: '1.8.0_171'
Driver info: driver.version: IOSDriver
Note:
Observation:
It is installing the my app on device.
webdriverAgent also get installed but it filkers and get removed from device.
Can some please help me on this it is very urgent.
HI @girishh143
Did you try above steps from @okankurtulus ? If not please try to go to that folder (webdriverAgent) and then run the xcode first and then go to terminal and run the command from where the WebdriverAgent is located.
If it is still not working then make sure you are not copying the command and paste it to terminal. It does not recognize the single quote when copied and pasted.
For eg: the above command you have given has double quotes after test ("xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=XXXXd938649f9640a0460d10c93ae95bcddee857' test") Please remove those quotes it should be just -$ xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=XXXXd938649f9640a0460d10c93ae95bcddee857' test. After you remove the double quotes make sure the single quotes are typed not copied.
Hope you will get it run. Good luck.
Hey I just went through your log file. Unfortunately, error code 65 means nothing. it seems like you have issue with your private key (signin code). Check the error below that I copied from your log file.
Proxying [GET /status] to [GET http://localhost:8100/status] with no body[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body[info] [Xcode] Code Signing Error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "SY9HF532JT" with a private key was found.
@smrutiv : I have done the singing in xcode, also created the certificate, also added it in key-chain but still i am getting the same error.
Note: I am using the Hybrid app is there any special setting for it ?
Most helpful comment
Hi, here is how I've solved the issue:
Applications/Appiumfrom FinderShow Package ContentsContents\Resources\app\node_modules\appium\node_modules/appium-xcuitest-driver/WebDriverAgentWebDriverAgent.xcodeprojfileIn my case the error
code 65is raised forWebDriverAgentnot my bundle, but I lost so much time because I all thought the signing issue is with my bundle