Open DonnaZh opened 6 years ago
Can you post the screenshot of WDARunner config in XCode.
[info] [Xcode] No profiles for 'com.facebook.WebDriverAgentRunner' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.facebook.WebDriverAgentRunner'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'WebDriverAgentRunner') [info] [Xcode] No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "8QQAQ6SX9Z" with a private key was found. (in target 'WebDriverAgentLib') [info] [Xcode] WebDriverAgentRunner-Runner.app encountered an error (The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.) [info] [Xcode] TEST EXECUTE FAILED
Thanks for your response, @ACBNair ! here is the screenshot of WDARunner config in Xcode. there is Provisioning Profile (Xcode Managed Profile) and Signing Certificate (iPhone Developer: <name (teamID)>) information.
how can i add Provisioning Profile and Signing Certificate in WDALib config? In WDARunner, i simply select Team to MSCop, and it automatically populate the information.
problem fixed, instead of using npm download appium, i download appium-desktop and install, then open WebDriverAgent.xcodeproj from /Application/appium.app/content/Reousrces/app/noode_modules/appium/node_modules/appium-xcuitest-driver/webdriveragent set Automatilly manage signing in terminal, cd /Application/appium.app/content/Reousrces/app/noode_modules/appium/node_modules/appium-xcuitest-driver/webdriveragent $ mkdir -p Resources/WebDriverAgent.bundle $ ./Scripts/bootstrap.sh -d go back to xcode, Product > Build For > Testing Build Succeeded
Hi Team, Facing same issue.
Scenario : I am able to launch my application on Simulator with iOS version 9.3 But when I am trying to inspect element I am getting error : "xcodebuild failed with code 65".
Below are my logs: [debug] [XCUITest] Removing WDA application from device[debug] [BaseDriver] Event 'wdaUninstalled' logged at 1545744128456 (18:52:08 GMT+0530 (IST)) [debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1545744128456 (18:52:08 GMT+0530 (IST)) [info] [XCUITest] Launching WebDriverAgent on the device [debug] [XCUITest] Carthage found: '/usr/local/bin/carthage' [debug] [XCUITest] Killing running processes 'xcodebuild.9DB129D1-28B4-47A3-AB13-2AA118D672D6, iproxy 8100, 9DB129D1-28B4-47A3-AB13-2AA118D672D6.XCTRunner' for the device 9DB129D1-28B4-47A3-AB13-2AA118D672D6... [debug] [XCUITest] 'pgrep -nif xcodebuild.9DB129D1-28B4-47A3-AB13-2AA118D672D6' didn't detect any matching processes. Return code: 1 [debug] [XCUITest] 'pgrep -nif iproxy 8100' didn't detect any matching processes. Return code: 1 [debug] [XCUITest] 'pgrep -nif 9DB129D1-28B4-47A3-AB13-2AA118D672D6.XCTRunner' didn't detect any matching processes. Return code: 1 [debug] [XCUITest] Using Xcode 9.2, so fixing WDA codebase [debug] [XCUITest] Beginning test with command 'xcodebuild test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=9DB129D1-28B4-47A3-AB13-2AA118D672D6 IPHONEOS_DEPLOYMENT_TARGET=9.3' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/nodemodules/appium-xcuitest-driver/WebDriverAgent' [debug] [XCUITest] Output from xcodebuild will not be logged. To change this, use 'showXcodeLog' desired capability[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start [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 [debug] [XCUITest] Log file for xcodebuild test: /var/folders/6/7sj7myss6gzfg70g73dy905h0000gp/T/com.apple.dt.XCTest/IDETestRunSession-FF883AD1-5886-47D7-9337-1DD41F50F878/WebDriverAgentRunner-1930EB9B-E1C1-428C-A53A-BD484D3FB069/Session-WebDriverAgentRunner-2018-12-25_185211-M4CYnM.log[info] [Xcode] 2018-12-25 18:52:11.665 xcodebuild[39958:1375567] Error Domain=IDEFoundationErrorDomain Code=1 "Cannot launch simulated executable: no file found at /Users/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app" UserInfo={NSLocalizedDescription=Cannot launch simulated executable: no file found at /Users/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app} [info] [Xcode] 2018-12-25 18:52:11.665 xcodebuild[39958:1375567] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted} [info] [Xcode] [info] [Xcode] 2018-12-25 18:52:11.667 xcodebuild[39958:1375583] Connection peer refused channel request for "dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"; channel canceled <DTXChannel: 0x7fdefd5a3600> [info] [Xcode] [info] [Xcode] TEST EXECUTE FAILED [info] [Xcode] [info] [Xcode] [info] [XCUITest] xcodebuild exited with code '65' and signal 'null' [debug] [BaseDriver] Event 'wdaStartFailed' logged at 1545744131689 (18:52:11 GMT+0530 (IST)) [debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". [debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying [info] [XCUITest] Shutting down sub-processes [debug] [XCUITest] Removing WDA application from device[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1545744141896 (18:52:21 GMT+0530 (IST)) [info] [XCUITest] Launching WebDriverAgent on the device [debug] [XCUITest] Carthage found: '/usr/local/bin/carthage' [debug] [XCUITest] Killing running processes 'xcodebuild.9DB129D1-28B4-47A3-AB13-2AA118D672D6, iproxy 8100, 9DB129D1-28B4-47A3-AB13-2AA118D672D6.XCTRunner' for the device 9DB129D1-28B4-47A3-AB13-2AA118D672D6...
Having same pb. Also try using apium 1.11.0-beta.3 and 1.10.0.
MacOS 10.14.1 Xcode 10.1, Appium 1.10.0 And 1.11.0-beta.3, node 8.12.0 Real Device (iPhone 6): iOS 12.1.2
the workaround @DonnaZh write - Copy WDA from Appium desktop to Appium - Didn't worked for me. (although running from Appium desktop worked fine)
Attached full log: xcodebuild failed with code 65.log
MacOS 10.13.6 Xcode 10.0, Appium 1.9.1, node 10.12.0 Real Device: iOS 12.0.1
Xcode build succeeded with 100+ Semantic Issue, and 4 Deprecated issue (Screenshot1)
Appium: [XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". (AppiumLog) appium-server-logs.txt
cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAget bash Scripts/bootstrap.sh