Hi Guys
I'm getting closer but I keep hitting new problems. What I've done so far:
This is a sim build so no certificate provisioning profiles are applicable unless I'm wrong, not sure what else to try.
Here is the log:
[Appium] Welcome to Appium v1.6.4-beta
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/roger/Downloads/CityPair_Beta.app","automationName":"XCUITest","deviceName":"iPhone 7","noReset":false,"platformName":"iOS","platformVersion":"10.3","newCommandTimeout":0,"connectHardwareKeyboard":true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/roger/Downloads/CityPair_Beta.app","automationName":"XCUITest","deviceName":"iPhone 7","noReset":false,"platformName":"iOS","platformVersion":"10.3","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null,null,null]
[BaseDriver] Event 'newSessionRequested' logged at 1490010827186 (13:53:47 GMT+0200 (SAST))
[Appium] Creating new XCUITestDriver (v2.20.0) session
[Appium] Capabilities:
[Appium] app: '/Users/roger/Downloads/CityPair_Beta.app'
[Appium] automationName: 'XCUITest'
[Appium] deviceName: 'iPhone 7'
[Appium] noReset: false
[Appium] platformName: 'iOS'
[Appium] platformVersion: '10.3'
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[XCUITest] XCUITestDriver version: 2.20.0
[BaseDriver] Session created with session id: 409114a7-eb66-49c2-ad85-a33d30595d06
[XCUITest] Xcode version set to '8.3' (tools v8.2.0.0.1.1480973914)
[XCUITest] iOS SDK Version set to '10.3'
[BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1490010832177 (13:53:52 GMT+0200 (SAST))
[iOSSim] Constructing iOS simulator for Xcode version 8.3 with udid '4539C402-E620-4A58-B0D0-FEF6D2746DE8'
[XCUITest] Determining device to run tests on: udid: '4539C402-E620-4A58-B0D0-FEF6D2746DE8', real device: false
[BaseDriver] Using local app '/Users/roger/Downloads/CityPair_Beta.app'
[BaseDriver] Event 'appConfigured' logged at 1490010833241 (13:53:53 GMT+0200 (SAST))
[XCUITest] Checking whether app '/Users/roger/Downloads/CityPair_Beta.app' is actually present on file system
[XCUITest] App is present
[iOS] Getting bundle ID from app '/Users/roger/Downloads/CityPair_Beta.app': 'com.travelstart.citypair-beta'
[XCUITest] Setting 'connectHardwareKeyboard' Simulator option to 'on'
[BaseDriver] Event 'resetStarted' logged at 1490010833274 (13:53:53 GMT+0200 (SAST))
[XCUITest] Not scrubbing third party app in anticipation of uninstall
[BaseDriver] Event 'resetComplete' logged at 1490010833463 (13:53:53 GMT+0200 (SAST))
[iOSLog] Starting iOS 10.3 simulator log capture
[iOSLog] System log path: /Users/roger/Library/Logs/CoreSimulator/4539C402-E620-4A58-B0D0-FEF6D2746DE8/system.log
[BaseDriver] Event 'logCaptureStarted' logged at 1490010833662 (13:53:53 GMT+0200 (SAST))
[XCUITest] Setting up simulator
[iOS] No reason to set locale
[iOS] No iOS / app preferences to set
[XCUITest] Simulator with udid '4539C402-E620-4A58-B0D0-FEF6D2746DE8' already booted
[BaseDriver] Event 'simStarted' logged at 1490010833890 (13:53:53 GMT+0200 (SAST))
[XCUITest] Reset requested. Removing app with id 'com.travelstart.citypair-beta' from the device
[XCUITest] Installing /Users/roger/Downloads/CityPair_Beta.app on Simulator with UUID '4539C402-E620-4A58-B0D0-FEF6D2746DE8'...
[XCUITest] The app has been installed successfully.
[BaseDriver] Event 'appInstalled' logged at 1490010891341 (13:54:51 GMT+0200 (SAST))
[BaseDriver] Event 'wdaStartAttempted' logged at 1490010891345 (13:54:51 GMT+0200 (SAST))
[XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: '/usr/local/bin/carthage'
[XCUITest] Killing hanging processes
[XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=4539C402-E620-4A58-B0D0-FEF6D2746DE8 -configuration Debug' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Output from xcodebuild will not be logged
[XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[XCUITest] Log file for xcodebuild test: /Users/roger/Library/Developer/Xcode/DerivedData/WebDriverAgent-cvqckynzuuktkogfpkkkgyompmoj/Logs/Test/5736C218-D895-48D5-8516-84762A6A4701/Session-WebDriverAgentRunner-2017-03-20_135520-KoKpsH.log
[Xcode] 2017-03-20 13:55:21.094 xcodebuild[16912:455522] Error Domain=IDEFoundationErrorDomain Code=1 "Cannot launch simulated executable: no file found at /Users/roger/Library/Developer/Xcode/DerivedData/WebDriverAgent-cvqckynzuuktkogfpkkkgyompmoj/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app" UserInfo={NSLocalizedDescription=Cannot launch simulated executable: no file found at /Users/roger/Library/Developer/Xcode/DerivedData/WebDriverAgent-cvqckynzuuktkogfpkkkgyompmoj/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app}
[Xcode] 2017-03-20 13:55:21.094 xcodebuild[16912:455522] 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}
[Xcode]
[Xcode] 2017-03-20 13:55:21.174 xcodebuild[16912:455667] Connection peer refused channel request for "dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"; channel canceled
[Xcode]
[Xcode] * TEST EXECUTE FAILED *
[Xcode]
[Xcode]
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[BaseDriver] Event 'wdaStartFailed' logged at 1490010921200 (13:55:21 GMT+0200 (SAST))
[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Removing WDA application from device
[BaseDriver] Event 'wdaStartAttempted' logged at 1490010932401 (13:55:32 GMT+0200 (SAST))
[XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: '/usr/local/bin/carthage'
[XCUITest] Killing hanging processes
[XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=4539C402-E620-4A58-B0D0-FEF6D2746DE8 -configuration Debug' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Output from xcodebuild will not be logged
[XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[XCUITest] Log file for xcodebuild test: /Users/roger/Library/Developer/Xcode/DerivedData/WebDriverAgent-cvqckynzuuktkogfpkkkgyompmoj/Logs/Test/8D12087A-66F7-4266-9DD4-1F6E625771B3/Session-WebDriverAgentRunner-2017-03-20_135535-zoq3HI.log
[Xcode] 2017-03-20 13:55:35.942 xcodebuild[16957:456111] Error Domain=IDEFoundationErrorDomain Code=1 "Cannot launch simulated executable: no file found at /Users/roger/Library/Developer/Xcode/DerivedData/WebDriverAgent-cvqckynzuuktkogfpkkkgyompmoj/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app" UserInfo={NSLocalizedDescription=Cannot launch simulated executable: no file found at /Users/roger/Library/Developer/Xcode/DerivedData/WebDriverAgent-cvqckynzuuktkogfpkkkgyompmoj/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app}
[Xcode]
[Xcode] 2017-03-20 13:55:35.942 xcodebuild[16957:456111] 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}
[Xcode]
[Xcode] 2017-03-20 13:55:35.945 xcodebuild[16957:456196] Connection peer refused channel request for "dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"; channel canceled
[Xcode]
[Xcode] * TEST EXECUTE FAILED *
[Xcode]
[Xcode]
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[BaseDriver] Event 'wdaStartFailed' logged at 1490010935963 (13:55:35 GMT+0200 (SAST))
[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Removing WDA application from device
[XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/lib/driver.js:368:15)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/lib/driver.js:368:15)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/lib/driver.js:368:15)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Can you try running with showXcodeLog capability set to true and give a link to a gist with the logs in it? This should give more information about the failing build step.
@imurchie Here you go: https://gist.github.com/rogermorgado/f3df269883ca5cca00d57e95a8a85769
Thank you
Hmm. Yes, I can reproduce this in the appium-desktop app. @dpgraham any thoughts on why this would be happening? Seems related to https://github.com/appium/appium-desktop/issues/94 as well.
Actually, I've tracked down the problem with Xcode 8.3 beta 4. It worked with beta 3 but the latest from Apple seems to break things.
@imurchie should I try downgrade to beta 3? Or should I wait for a fix, what do you suggest?
That would be the best course, yes. It is in the hands of an upstream project to get it updated, so it might take a few days. :(
@imurchie I noticed that beta 5 was just released, might give that a try although I don't have high expectations :)
I am seeing this error with the public 8.3 release as well.
Agree with @BasThomas
I get this error when starts appium, but when I deploy WebDriverAgent to device from XCode it's successfully deployed.
I'm having the same issue now that I've upgraded to Xcode 8.3
I'll add this to our backlog
@dpgraham This is going to be fixed by https://github.com/appium/appium-xcuitest-driver/pull/407
I have found the solution for it.
Follow below steps:-
this path.
@sgupta3112 I was trying to get that path but
"cd: no such file or directory: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent" so what did I miss?
Hey @sgupta3112 I just tried your workaround (signing with iOS developer) but the build is still failing. Could you please or anyone give us some clues (I mean, more details) how to solve it?
Thanks in advance
Why Build is getting failed ?
Can you please tell me the error.
@piotr-mazur have u install carthage, libimobiledevices in your system ?
@sgupta3112
I did : brew install libimobiledevice --HEAD
brew install carthage
npm install -g ios-deploy
gem install xcpretty
npm install appium-doctor -g
npm install appium-xcuitest-driver ,
Can you help me with :
[Xcode] 2017-03-31 11:24:32.451 xcodebuild[46765:3201885] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/znajduch/Library/Developer/Xcode/DerivedData/WebDriverAgent-cvqckynzuuktkogfpkkkgyompmoj/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7ffc35b9d420 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
I am trying to run it on real device
@sgupta3112
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/znajduch/Downloads/Wellpass-575.575.ipa","deviceName":"Piotr's iPhone","platformName":"iOS","platformVersion":"10.3","udid":"xxx","xcodeSigningId":"IOS Develeoper","newCommandTimeout":0,"connectHardwareKeyboard":true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/znajduch/Downloads/Wellpass-575.575.ipa","deviceName":"Piotr's iPhone","platformName":"iOS","platformVersion":"10.3","udid":"xxxx","xcodeSigningId":"IOS Develeoper","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null,null,null]
[BaseDriver] Event 'newSessionRequested' logged at 1490953286506 (11:41:26 GMT+0200 (CEST))
[Appium] Requested iOS support with version >= 10, using XCUITest driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.
[Appium] Creating new XCUITestDriver (v2.23.1) session
[Appium] Capabilities:
[Appium] app: '/Users/znajduch/Downloads/Wellpass-575.575.ipa'
[Appium] deviceName: 'Piotr\'s iPhone'
[Appium] platformName: 'iOS'
[Appium] platformVersion: '10.3'
[Appium] udid: 'xxxxx'
[Appium] xcodeSigningId: 'IOS Develeoper'
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[XCUITest] XCUITestDriver version: 2.23.1
[BaseDriver] Session created with session id: a9f7d86c-0085-49fe-9a93-0f6d5f9ab3c4
[XCUITest] Xcode version set to '8.3' (tools v8.3.0.0.1.1490382677)
[XCUITest] iOS SDK Version set to '10.3'
[BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1490953287383 (11:41:27 GMT+0200 (CEST))
[XCUITest] Available devices: 6cfd3ea6a61ec36c43000ec1d92c55ca2ec33fcb
[XCUITest] Creating iDevice object with udid 'xxxxx'
[XCUITest] Determining device to run tests on: udid: '6cfd3ea6a61ec36c43000ec1d92c55ca2ec33fcb', real device: true
[BaseDriver] Using local app '/Users/znajduch/Downloads/Wellpass-575.575.ipa'
[BaseDriver] Copying local zip to tmp dir
[BaseDriver] Unzipping /var/folders/6f/7mtv87kn15l92k5mpxmg97mr0000gn/T/2017231-44964-1a145y8.8bi2l9dx6r/appium-app.zip
[BaseDriver] Testing zip archive: /var/folders/6f/7mtv87kn15l92k5mpxmg97mr0000gn/T/2017231-44964-1a145y8.8bi2l9dx6r/appium-app.zip
[BaseDriver] Unzipped local app to '/var/folders/6f/7mtv87kn15l92k5mpxmg97mr0000gn/T/2017231-44964-1a145y8.8bi2l9dx6r/Payload/Wellpass.app'
[BaseDriver] Event 'appConfigured' logged at 1490953288447 (11:41:28 GMT+0200 (CEST))
[XCUITest] Checking whether app '/var/folders/6f/7mtv87kn15l92k5mpxmg97mr0000gn/T/2017231-44964-1a145y8.8bi2l9dx6r/Payload/Wellpass.app' is actually present on file system
[XCUITest] App is present
[iOS] Getting bundle ID from app '/var/folders/6f/7mtv87kn15l92k5mpxmg97mr0000gn/T/2017231-44964-1a145y8.8bi2l9dx6r/Payload/Wellpass.app': 'com.wellpass'
[BaseDriver] Event 'resetStarted' logged at 1490953288473 (11:41:28 GMT+0200 (CEST))
[XCUITest] Reset: running ios real device reset flow
[BaseDriver] Event 'resetComplete' logged at 1490953288474 (11:41:28 GMT+0200 (CEST))
[iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[BaseDriver] Event 'logCaptureStarted' logged at 1490953288645 (11:41:28 GMT+0200 (CEST))
[XCUITest] Setting up real device
[XCUITest] Reset requested. Removing app with id 'com.wellpass' from the device
[XCUITest] Installing '/var/folders/6f/7mtv87kn15l92k5mpxmg97mr0000gn/T/2017231-44964-1a145y8.8bi2l9dx6r/Payload/Wellpass.app' on device with UUID '6cfd3ea6a61ec36c43000ec1d92c55ca2ec33fcb'...
[XCUITest] The app has been installed successfully.
[BaseDriver] Event 'appInstalled' logged at 1490953290819 (11:41:30 GMT+0200 (CEST))
[BaseDriver] Event 'wdaStartAttempted' logged at 1490953290825 (11:41:30 GMT+0200 (CEST))
[XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: '/usr/local/bin/carthage'
[XCUITest] Killing hanging processes
[XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=6cfd3ea6a61ec36c43000ec1d92c55ca2ec33fcb -configuration Debug' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Output from xcodebuild will not be logged
[XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[XCUITest] Log file for xcodebuild test: /Users/znajduch/Library/Developer/Xcode/DerivedData/WebDriverAgent-cvqckynzuuktkogfpkkkgyompmoj/Logs/Test/F5B78D7C-E031-4D0C-93E3-55BF6071DD05/Session-WebDriverAgentRunner-2017-03-31_114142-vPVsfP.log
[Xcode] 2017-03-31 11:41:42.898 xcodebuild[47976:3402554] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/znajduch/Library/Developer/Xcode/DerivedData/WebDriverAgent-cvqckynzuuktkogfpkkkgyompmoj/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fab2b9b8ba0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
[Xcode]
[Xcode] 2017-03-31 11:41:42.899 xcodebuild[47976:3402554] 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}
[Xcode]
[Xcode] * TEST EXECUTE FAILED *
[Xcode]
[Xcode]
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[BaseDriver] Event 'wdaStartFailed' logged at 1490953302950 (11:41:42 GMT+0200 (CEST))
[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 47975)
[XCUITest] iproxy exited with code 'null'
[XCUITest] Removing WDA application from device
[BaseDriver] Event 'wdaStartAttempted' logged at 1490953313245 (11:41:53 GMT+0200 (CEST))
[XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: '/usr/local/bin/carthage'
[XCUITest] Killing hanging processes
[XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=6cfd3ea6a61ec36c43000ec1d92c55ca2ec33fcb -configuration Debug' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent'
ping me here: [email protected] on hangout.
This problem has been solved inthe latest driver. Re-install the appium beta and you should get it. The problem was changes in Xcode.
Still experiencing the same problem ...
Getting this: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.
from where can I get this WebDriverAgentRunner-Runner.app for real device?
Appium 1.0.2-betta and Appium v1.6.4
{
"deviceName": "Igor's iPhone5C",
"udid": "866ab408080b93c891c8b038755096207b44a2fc",
"automationName": "XCUITest",
"platformName": "iOS",
"bundleId": "Jostle.AppiumTest-jostle.me1",
"platformVersion": "10.3",
"fullReset": false,
"showXcodeLog": false,
"clearSystemFiles": false
}
It is built at runtime. The instructions for setting things up are here: https://github.com/appium/appium/blob/master/docs/en/appium-setup/real-devices-ios.md
What If any iOS devie does not have mdm option in the "General > Settings > Profile"? Then how we will resolve the following issue:
WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/username/Library/oper/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app
@rajeev2 Not sure what you mean by "mdm option".
You can see what the problem is by manually running the xcodebuild command (it's in your Appium logs) or by setting the showXcodeLog capability to true. That should provide more diagnostic information.
Hi, I am getting the same error on xcode build command using Appium 1.6.5.
xcodebuild test-without-building -project /Users/pbox/.nvm/versions/node/v6.10.3/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=
Gist - https://gist.github.com/thejuskrishna/511c2da8417e1356cdcbd658e29304c0
@thejuskrishna can you open new ticket with all the details ? As current ticket is closed, it's better to track issue with new ticket.
I think we can close it. I reinstalled and built appium. Basically there were two folders on WebdriverAgent which was being built because of some reason.
I did npm uninstall -g appium and npm install -g appium and then built it again. Also upgraded 10.2.1 to 10.3.2.
Hi guys,
getting the 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
What could be the possible reason behind it????
[Appium] Welcome to Appium v1.6.5
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"appium-version":"1.6.5","platformVersion":"10.3.3","platformName":"iOS","deviceName":"Victoria iPhone","udid":"e600e5254ef21d1ca04940a49210f5c50a0f8cdf","app":"/Users/shaik.abdulsubhan/Desktop/HotelingHybrid.ipa","bundleId":"com.pwc.us.mobility.MobileHoteling","browserName":"","automationName":"XCUITest","useNewWDA":"true","showXcodeLog":"true","xcodeOrgId":"EUJ33ZJ86W","xcodeSigningId":"iPhone Developer","autoWebview":"true","autoWebviewTimeout":"10000","newCommandTimeout":"300000","count":1}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"appium-version":"1.6.5","platformVersion":"10.3.3","platformName":"iOS","deviceName":"Victoria iPhone","udid":"e600e5254ef21d1ca04940a49210f5c50a0f8cdf","app":"/Users/shaik.abdulsubhan/Desktop/HotelingHybrid.ipa","bundleId":"com.pwc.us.mobility.MobileHoteling","browserName":"","automationName":"XCUITest","useNewWDA":"true","showXcodeLog":"true","xcodeOrgId":"EUJ33ZJ86W","xcodeSigningId":"iPhone Developer","autoWebview":"true","autoWebviewTimeout":"10000","newCommandTimeout":"300000","count":1},null,null]
[BaseDriver] Event 'newSessionRequested' logged at 1506091297337 (20:11:37 GMT+0530 (IST))
[Appium] Creating new XCUITestDriver (v2.30.0) session
[Appium] Capabilities:
[Appium] appium-version: '1.6.5'
[Appium] platformVersion: '10.3.3'
[Appium] platformName: 'iOS'
[Appium] deviceName: 'Victoria iPhone'
[Appium] udid: 'e600e5254ef21d1ca04940a49210f5c50a0f8cdf'
[Appium] app: '/Users/shaik.abdulsubhan/Desktop/HotelingHybrid.ipa'
[Appium] bundleId: 'com.pwc.us.mobility.MobileHoteling'
[Appium] browserName: ''
[Appium] automationName: 'XCUITest'
[Appium] useNewWDA: 'true'
[Appium] showXcodeLog: 'true'
[Appium] xcodeOrgId: 'EUJ33ZJ86W'
[Appium] xcodeSigningId: 'iPhone Developer'
[Appium] autoWebview: 'true'
[Appium] autoWebviewTimeout: '10000'
[Appium] newCommandTimeout: '300000'
[Appium] count: 1
[XCUITest] XCUITestDriver version: 2.30.0
[BaseDriver] Capability 'autoWebview' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'showXcodeLog' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'useNewWDA' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'newCommandTimeout' changed from string ('300000') to integer (300000). This may cause unexpected behavior
[BaseDriver] The following capabilities were provided, but are not recognized by appium: appium-version, autoWebviewTimeout, count.
[BaseDriver] Session created with session id: 7358c36a-7662-4d13-be9d-cab422103cf1
[XCUITest] Xcode version set to '8.3.3' (tools v9.0.0.0.1.1504363082)
[XCUITest] iOS SDK Version set to '10.3'
[BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1506091298209 (20:11:38 GMT+0530 (IST))
[XCUITest] Available devices: e600e5254ef21d1ca04940a49210f5c50a0f8cdf
[XCUITest] Creating iDevice object with udid 'e600e5254ef21d1ca04940a49210f5c50a0f8cdf'
[XCUITest] Determining device to run tests on: udid: 'e600e5254ef21d1ca04940a49210f5c50a0f8cdf', real device: true
[BaseDriver] Using local app '/Users/shaik.abdulsubhan/Desktop/HotelingHybrid.ipa'
[BaseDriver] Copying local zip to tmp dir
[BaseDriver] Unzipping /var/folders/fj/w3tk0f4n5lb92d0ldm49mz05t7hg_8/T/2017822-8516-uwnb8m.7vipmn29/appium-app.zip
[BaseDriver] Testing zip archive: /var/folders/fj/w3tk0f4n5lb92d0ldm49mz05t7hg_8/T/2017822-8516-uwnb8m.7vipmn29/appium-app.zip
[BaseDriver] Got a relaxed match for app in zip, be careful for app match errors
[BaseDriver] Unzipped local app to '/var/folders/fj/w3tk0f4n5lb92d0ldm49mz05t7hg_8/T/2017822-8516-uwnb8m.7vipmn29/Payload/HotelingHybrid.app'
[BaseDriver] Event 'appConfigured' logged at 1506091299780 (20:11:39 GMT+0530 (IST))
[XCUITest] Checking whether app '/var/folders/fj/w3tk0f4n5lb92d0ldm49mz05t7hg_8/T/2017822-8516-uwnb8m.7vipmn29/Payload/HotelingHybrid.app' is actually present on file system
[XCUITest] App is present
[BaseDriver] Event 'resetStarted' logged at 1506091299782 (20:11:39 GMT+0530 (IST))
[XCUITest] Reset: running ios real device reset flow
[BaseDriver] Event 'resetComplete' logged at 1506091299783 (20:11:39 GMT+0530 (IST))
[iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[BaseDriver] Event 'logCaptureStarted' logged at 1506091300465 (20:11:40 GMT+0530 (IST))
[XCUITest] Setting up real device
[XCUITest] Installing '/var/folders/fj/w3tk0f4n5lb92d0ldm49mz05t7hg_8/T/2017822-8516-uwnb8m.7vipmn29/Payload/HotelingHybrid.app' on device with UUID 'e600e5254ef21d1ca04940a49210f5c50a0f8cdf'...
[XCUITest] The app has been installed successfully.
[BaseDriver] Event 'appInstalled' logged at 1506091303734 (20:11:43 GMT+0530 (IST))
[BaseDriver] Event 'wdaStartAttempted' logged at 1506091303736 (20:11:43 GMT+0530 (IST))
[XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Capability 'useNewWDA' set, so uninstalling WDA before proceeding
[XCUITest] Removing WDA application from device
[BaseDriver] Event 'wdaUninstalled' logged at 1506091304833 (20:11:44 GMT+0530 (IST))
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: '/usr/local/bin/carthage'
[XCUITest] Killing hanging processes
[XCUITest] Generating xcode config file for orgId 'EUJ33ZJ86W' and signingId 'iPhone Developer'
[XCUITest] Writing xcode config file to /var/folders/fj/w3tk0f4n5lb92d0ldm49mz05t7hg_8/T/2017822-8516-nl8qxs.26z5ubx1or/appium-temp.xcconfig
[XCUITest] Using Xcode configuration file: '/var/folders/fj/w3tk0f4n5lb92d0ldm49mz05t7hg_8/T/2017822-8516-nl8qxs.26z5ubx1or/appium-temp.xcconfig'
[XCUITest] Beginning test with command 'xcodebuild build-for-testing 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=e600e5254ef21d1ca04940a49210f5c50a0f8cdf -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3 -xcconfig /var/folders/fj/w3tk0f4n5lb92d0ldm49mz05t7hg_8/T/2017822-8516-nl8qxs.26z5ubx1or/appium-temp.xcconfig' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Output from xcodebuild will be logged
[XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[Xcode] Build settings from command line:
[Xcode] IPHONEOS_DEPLOYMENT_TARGET = 10.3
[Xcode]
[Xcode] Build settings from configuration file '/var/folders/fj/w3tk0f4n5lb92d0ldm49mz05t7hg_8/T/2017822-8516-nl8qxs.26z5ubx1or/appium-temp.xcconfig':
[Xcode] CODE_SIGN_IDENTITY = iPhone Developer
[Xcode] DEVELOPMENT_TEAM = EUJ33ZJ86W
[Xcode]
[Xcode]
[XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] === BUILD TARGET WebDriverAgentLib OF PROJECT WebDriverAgent WITH CONFIGURATION Debug ===
[Xcode]
[Xcode]
[Xcode] Check dependencies
[Xcode]
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "EUJ33ZJ86W" with a private key was found.
[Xcode]
[Xcode]
[Xcode]
[Xcode] * TEST BUILD FAILED *
[Xcode]
[Xcode]
[Xcode] The following build commands failed:
[Xcode] Check dependencies
[Xcode] (1 failure)
[Xcode]
[XCUITest] Log file for xcodebuild test: /Users/shaik.abdulsubhan/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/4F477F00-DE51-4843-8AD9-D7D22A0AEB35/Session-WebDriverAgentRunner-2017-09-22_201156-AUXRuB.log
[Xcode] 2017-09-22 20:11:56.593 xcodebuild[8573:5518092] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
[Xcode] /Users/shaik.abdulsubhan/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/4F477F00-DE51-4843-8AD9-D7D22A0AEB35/Session-WebDriverAgentRunner-2017-09-22_201156-AUXRuB.log
[Xcode]
[Xcode] 2017-09-22 20:11:56.594 xcodebuild[8573:5517915] [MT] IDETestOperationsObserverDebug: (209F9839-49E3-4116-BBFC-EBD578EFBDDB) Beginning test session WebDriverAgentRunner-209F9839-49E3-4116-BBFC-EBD578EFBDDB at 2017-09-22 20:11:56.593 with Xcode 8E3004b on target {
[Xcode] deviceSerialNumber: DNQL57V1DTWD
[Xcode] identifier: e600e5254ef21d1ca04940a49210f5c50a0f8cdf
[Xcode] deviceClass: iPhone
[Xcode] deviceName: Victoria iPhone
[Xcode] deviceIdentifier: e600e5254ef21d1ca04940a49210f5c50a0f8cdf
[Xcode] productVersion: 10.3.3
[Xcode] buildVersion: 14G60
[Xcode] deviceSoftwareVersion: 10.3.3 (14G60)
[Xcode] deviceArchitecture: armv7s
[Xcode] deviceTotalCapacity: 12975857664
[Xcode] deviceAvailableCapacity: 10915090432
[Xcode] deviceIsTransient: NO
[Xcode] ignored: NO
[Xcode] deviceIsBusy: NO
[Xcode] deviceIsActivated: YES
[Xcode] deviceActivationState: Activated
[Xcode] isPasscodeLocked: NO
[Xcode] deviceType:
[Xcode] supportedDeviceFamilies: (
[Xcode] 1
[Xcode] )
[Xcode] applications: (null)
[Xcode] provisioningProfiles: (null)
[Xcode] activityProgress: -2
[Xcode] activityTitle:
[Xcode] hasInternalSupport: NO
[Xcode] isSupportedOS: YES
[Xcode] developerDiskMountError: (null)
[Xcode] (null)
[Xcode] bootArgs:
[Xcode] } (10.3.3 (14G60))
[Xcode]
[Xcode] 2017-09-22 20:11:56.645 xcodebuild[8573:5517915] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/shaik.abdulsubhan/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fda1151ff00 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
[Xcode] 2017-09-22 20:11:56.645 xcodebuild[8573:5517915] 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}
[Xcode]
[Xcode] * TEST EXECUTE FAILED *
[Xcode]
[Xcode]
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[Xcode] Contents of xcodebuild log file '/Users/shaik.abdulsubhan/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/4F477F00-DE51-4843-8AD9-D7D22A0AEB35/Session-WebDriverAgentRunner-2017-09-22_201156-AUXRuB.log':
[Xcode] 20:11:56.594 xcodebuild[8573:5517915] Beginning test session WebDriverAgentRunner-209F9839-49E3-4116-BBFC-EBD578EFBDDB at 2017-09-22 20:11:56.593 with Xcode 8E3004b on target {
[Xcode] deviceSerialNumber: DNQL57V1DTWD
[Xcode] identifier: e600e5254ef21d1ca04940a49210f5c50a0f8cdf
[Xcode] deviceClass: iPhone
[Xcode] deviceName: Victoria iPhone
[Xcode] deviceIdentifier: e600e5254ef21d1ca04940a49210f5c50a0f8cdf
[Xcode] productVersion: 10.3.3
[Xcode] buildVersion: 14G60
[Xcode] deviceSoftwareVersion: 10.3.3 (14G60)
[Xcode] deviceArchitecture: armv7s
[Xcode] deviceTotalCapacity: 12975857664
[Xcode] deviceAvailableCapacity: 10915090432
[Xcode] deviceIsTransient: NO
[Xcode] ignored: NO
[Xcode] deviceIsBusy: NO
[Xcode] deviceIsActivated: YES
[Xcode] deviceActivationState: Activated
[Xcode] isPasscodeLocked: NO
[Xcode] deviceType:
[Xcode] supportedDeviceFamilies: (
[Xcode] 1
[Xcode] )
[Xcode] applications: (null)
[Xcode] provisioningProfiles: (null)
[Xcode] activityProgress: -2
[Xcode] activityTitle:
[Xcode] hasInternalSupport: NO
[Xcode] isSupportedOS: YES
[Xcode] developerDiskMountError: (null)
[Xcode] (null)
[Xcode] bootArgs:
[Xcode] } (10.3.3 (14G60))
[Xcode] 20:11:56.594 xcodebuild[8573:5517915] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
[Xcode] build-for-testing
[Xcode] test-without-building
[Xcode] -project
[Xcode] /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[Xcode] -scheme
[Xcode] WebDriverAgentRunner
[Xcode] -destination
[Xcode] id=e600e5254ef21d1ca04940a49210f5c50a0f8cdf
[Xcode] -configuration
[Xcode] Debug
[Xcode] IPHONEOS_DEPLOYMENT_TARGET=10.3
[Xcode] -xcconfig
[Xcode] /var/folders/fj/w3tk0f4n5lb92d0ldm49mz05t7hg_8/T/2017822-8516-nl8qxs.26z5ubx1or/appium-temp.xcconfig
[Xcode] 20:11:56.594 xcodebuild[8573:5517915] Launching with Xcode.IDEFoundation.Launcher.PosixSpawn
[Xcode] 20:11:56.604 xcodebuild[8573:5518023] Connecting to mobile device: e600e5254ef21d1ca04940a49210f5c50a0f8cdf
[Xcode] 20:11:56.608 xcodebuild[8573:5518023] Starting session with mobile device
[Xcode] 20:11:56.641 xcodebuild[8573:5517915] Launch session started.
[Xcode] 20:11:56.644 xcodebuild[8573:5517915] Test operation failure: Launch session expired before checking in.
[Xcode] 20:11:56.644 xcodebuild[8573:5517915] _finishWithError:Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Launch session expired before checking in." UserInfo={NSLocalizedDescription=Launch session expired before checking in.} didCancel: 1
[Xcode]
[BaseDriver] Event 'wdaStartFailed' logged at 1506091316772 (20:11:56 GMT+0530 (IST))
[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 8569)
[XCUITest] iproxy exited with code 'null'
[XCUITest] Removing WDA application from device
[BaseDriver] Event 'wdaStartAttempted' logged at 1506091327218 (20:12:07 GMT+0530 (IST))
[XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Capability 'useNewWDA' set, so uninstalling WDA before proceeding
[XCUITest] Removing WDA application from device
[BaseDriver] Event 'wdaUninstalled' logged at 1506091327709 (20:12:07 GMT+0530 (IST))
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: '/usr/local/bin/carthage'
[XCUITest] Killing hanging processes
[XCUITest] Generating xcode config file for orgId 'EUJ33ZJ86W' and signingId 'iPhone Developer'
[XCUITest] Writing xcode config file to /var/folders/fj/w3tk0f4n5lb92d0ldm49mz05t7hg_8/T/2017822-8516-lnchl2.jduyhc9pb9/appium-temp.xcconfig
[XCUITest] Using Xcode configuration file: '/var/folders/fj/w3tk0f4n5lb92d0ldm49mz05t7hg_8/T/2017822-8516-lnchl2.jduyhc9pb9/appium-temp.xcconfig'
[XCUITest] Beginning test with command 'xcodebuild build-for-testing 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=e600e5254ef21d1ca04940a49210f5c50a0f8cdf -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3 -xcconfig /var/folders/fj/w3tk0f4n5lb92d0ldm49mz05t7hg_8/T/2017822-8516-lnchl2.jduyhc9pb9/appium-temp.xcconfig' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Output from xcodebuild will be logged
[XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[Xcode] Build settings from command line:
[Xcode] IPHONEOS_DEPLOYMENT_TARGET = 10.3
[Xcode]
[Xcode] Build settings from configuration file '/var/folders/fj/w3tk0f4n5lb92d0ldm49mz05t7hg_8/T/2017822-8516-lnchl2.jduyhc9pb9/appium-temp.xcconfig':
[Xcode] CODE_SIGN_IDENTITY = iPhone Developer
[Xcode] DEVELOPMENT_TEAM = EUJ33ZJ86W
[Xcode]
[Xcode]
[XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] === BUILD TARGET WebDriverAgentLib OF PROJECT WebDriverAgent WITH CONFIGURATION Debug ===
[Xcode]
[Xcode]
[Xcode] Check dependencies
[Xcode]
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "EUJ33ZJ86W" with a private key was found.
[Xcode]
[Xcode]
[Xcode]
[Xcode] * TEST BUILD FAILED *
[Xcode]
[Xcode]
[Xcode] The following build commands failed:
[Xcode] Check dependencies
[Xcode] (1 failure)
[Xcode]
[XCUITest] Log file for xcodebuild test: /Users/shaik.abdulsubhan/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/25848FF7-813D-45D2-8B8C-266D6C1A6718/Session-WebDriverAgentRunner-2017-09-22_201216-qUt3fj.log
[Xcode] 2017-09-22 20:12:16.855 xcodebuild[8616:5518774] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
[Xcode] /Users/shaik.abdulsubhan/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/25848FF7-813D-45D2-8B8C-266D6C1A6718/Session-WebDriverAgentRunner-2017-09-22_201216-qUt3fj.log
[Xcode]
[Xcode] 2017-09-22 20:12:16.855 xcodebuild[8616:5518722] [MT] IDETestOperationsObserverDebug: (D8AFE205-F9CF-4172-A4EF-995E0F81FFFB) Beginning test session WebDriverAgentRunner-D8AFE205-F9CF-4172-A4EF-995E0F81FFFB at 2017-09-22 20:12:16.855 with Xcode 8E3004b on target {
[Xcode] deviceSerialNumber: DNQL57V1DTWD
[Xcode] identifier: e600e5254ef21d1ca04940a49210f5c50a0f8cdf
[Xcode] deviceClass: iPhone
[Xcode] deviceName: Victoria iPhone
[Xcode] deviceIdentifier: e600e5254ef21d1ca04940a49210f5c50a0f8cdf
[Xcode] productVersion: 10.3.3
[Xcode] buildVersion: 14G60
[Xcode] deviceSoftwareVersion: 10.3.3 (14G60)
[Xcode] deviceArchitecture: armv7s
[Xcode] deviceTotalCapacity: 12975857664
[Xcode] deviceAvailableCapacity: 10915049472
[Xcode] deviceIsTransient: NO
[Xcode] ignored: NO
[Xcode] deviceIsBusy: NO
[Xcode] deviceIsActivated: YES
[Xcode] deviceActivationState: Activated
[Xcode] isPasscodeLocked: NO
[Xcode] deviceType:
[Xcode] supportedDeviceFamilies: (
[Xcode] 1
[Xcode] )
[Xcode] applications: (null)
[Xcode] provisioningProfiles: (null)
[Xcode] activityProgress: -2
[Xcode] activityTitle:
[Xcode] hasInternalSupport: NO
[Xcode] isSupportedOS: YES
[Xcode] developerDiskMountError: (null)
[Xcode] (null)
[Xcode] bootArgs:
[Xcode] } (10.3.3 (14G60))
[Xcode]
[Xcode] 2017-09-22 20:12:16.873 xcodebuild[8616:5518722] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/shaik.abdulsubhan/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7ffa06c66200 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
[Xcode] 2017-09-22 20:12:16.873 xcodebuild[8616:5518722] 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}
[Xcode]
[Xcode] * TEST EXECUTE FAILED *
[Xcode]
[Xcode]
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[Xcode] Contents of xcodebuild log file '/Users/shaik.abdulsubhan/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/25848FF7-813D-45D2-8B8C-266D6C1A6718/Session-WebDriverAgentRunner-2017-09-22_201216-qUt3fj.log':
[Xcode] 20:12:16.856 xcodebuild[8616:5518722] Beginning test session WebDriverAgentRunner-D8AFE205-F9CF-4172-A4EF-995E0F81FFFB at 2017-09-22 20:12:16.855 with Xcode 8E3004b on target {
[Xcode] deviceSerialNumber: DNQL57V1DTWD
[Xcode] identifier: e600e5254ef21d1ca04940a49210f5c50a0f8cdf
[Xcode] deviceClass: iPhone
[Xcode] deviceName: Victoria iPhone
[Xcode] deviceIdentifier: e600e5254ef21d1ca04940a49210f5c50a0f8cdf
[Xcode] productVersion: 10.3.3
[Xcode] buildVersion: 14G60
[Xcode] deviceSoftwareVersion: 10.3.3 (14G60)
[Xcode] deviceArchitecture: armv7s
[Xcode] deviceTotalCapacity: 12975857664
[Xcode] deviceAvailableCapacity: 10915049472
[Xcode] deviceIsTransient: NO
[Xcode] ignored: NO
[Xcode] deviceIsBusy: NO
[Xcode] deviceIsActivated: YES
[Xcode] deviceActivationState: Activated
[Xcode] isPasscodeLocked: NO
[Xcode] deviceType:
[Xcode] supportedDeviceFamilies: (
[Xcode] 1
[Xcode] )
[Xcode] applications: (null)
[Xcode] provisioningProfiles: (null)
[Xcode] activityProgress: -2
[Xcode] activityTitle:
[Xcode] hasInternalSupport: NO
[Xcode] isSupportedOS: YES
[Xcode] developerDiskMountError: (null)
[Xcode] (null)
[Xcode] bootArgs:
[Xcode] } (10.3.3 (14G60))
[Xcode] 20:12:16.856 xcodebuild[8616:5518722] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
[Xcode] build-for-testing
[Xcode] test-without-building
[Xcode] -project
[Xcode] /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[Xcode] -scheme
[Xcode] WebDriverAgentRunner
[Xcode] -destination
[Xcode] id=e600e5254ef21d1ca04940a49210f5c50a0f8cdf
[Xcode] -configuration
[Xcode] Debug
[Xcode] IPHONEOS_DEPLOYMENT_TARGET=10.3
[Xcode] -xcconfig
[Xcode] /var/folders/fj/w3tk0f4n5lb92d0ldm49mz05t7hg_8/T/2017822-8516-lnchl2.jduyhc9pb9/appium-temp.xcconfig
[Xcode] 20:12:16.856 xcodebuild[8616:5518722] Launching with Xcode.IDEFoundation.Launcher.PosixSpawn
[Xcode] 20:12:16.864 xcodebuild[8616:5518741] Connecting to mobile device: e600e5254ef21d1ca04940a49210f5c50a0f8cdf
[Xcode] 20:12:16.868 xcodebuild[8616:5518741] Starting session with mobile device
[Xcode] 20:12:16.869 xcodebuild[8616:5518722] Launch session started.
[Xcode] 20:12:16.872 xcodebuild[8616:5518722] Test operation failure: Launch session expired before checking in.
[Xcode] 20:12:16.873 xcodebuild[8616:5518722] _finishWithError:Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Launch session expired before checking in." UserInfo={NSLocalizedDescription=Launch session expired before checking in.} didCancel: 1
[Xcode]
[BaseDriver] Event 'wdaStartFailed' logged at 1506091336902 (20:12:16 GMT+0530 (IST))
[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 8615)
[XCUITest] iproxy exited with code 'null'
[XCUITest] Removing WDA application from device
[XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:386:15)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js💯21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:386:15)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js💯21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
[iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:386:15)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js💯21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[HTTP] <-- POST /wd/hub/session 500 50031 ms - 230
Please refrain from posting the same report on multiple issues. It doesn't make anything go faster.
sorry for incovenience first time posting on github. i have no idea regarding this
Hi @imurchie and other experts,
I am new to this place and this is my first post on Github.
Here is the Problem that I am facing
I could run the Appium setup successfully on one of machine, while trying to setup Appium on another Mac it is always failing with following Errors:
Here is the Error from Appium Logs while running following command:
codebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination ‘id=udid’ test
ERROR:
[MJSONWP] Encountered internal error running command: 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.
Here is the Error from Xcode Logs:
Error:
10:54:11.269 xcodebuild[14376:258994] Test operation failure: Launch session expired before checking in.
10:54:11.269 xcodebuild[14376:258994] _finishWithError:Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Launch session expired before checking in." UserInfo={NSLocalizedDescription=Launch session expired before checking in.} didCancel: 1
I have followed multiple posts and have followed the procedure mentioned at:
https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md
Also I have tried various versions of Appium. Have uninstalled and installed them back numerous times but with no success. Currently I am on Appium 1.7.2 (beta)
Also as per suggestion I have uninstalled WDA and rebooted the device many times but with no luck.
Please Note that same device on another machine is working perfectly fine.
Can you please check and let me know what is wrong?
I can not find anything fishy with Signing because xcode is bulding both Lib and AgentRunner targets without any errors.
Please let me know if any more info is needed.
Thanks in advance.
@deepRaghwa did you resolve this issue, i am getting exact same error, please let me know
@chanugithub @deepRaghwa you can refer to solution mentioned in https://github.com/appium/appium/issues/9035
@vikramvi hey vikram, i tried #9035 but no luck, when you said Issue 2
(Documentation should ask user to install app on the physical device successfully first with help of XCode and if step is success then only goto next stop of installing WDA.)
Do you mean, User have to install the app via its source code and xcode? or can i install with itunes via .ipa file
Once also please look into this i raised one issue and struggling from 4 days.
https://github.com/facebook/WebDriverAgent/issues/792
@sushree-moharana : Did you find any solution to it?
@imurchie : i'm refraining from providing any more logs. But this is the same issue i'm finding.
Xcode version : 9.1
appium : 1.7.1.
Please suggest some solution.
I have no advice without logs (with showXcodeLog capability set to true, in the form of a link to a gist). These errors can have multiple causes.
Thanks a ton @chanugithub . One of the Apple certificate was set to "Always trust" in the Keychain Access. I reverted it back to "System Default" and all works fine now. Thanks a lot everyone.
Im facing same issue Receiving "Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". " Can anyone please guide me how to resolve this issue.
Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Output from xcodebuild will be logged. To see xcode logging, use 'showXcodeLog' desired capability[info] [Xcode] Build settings from command line:
[info] [Xcode]
[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
[info] [Xcode] IPHONEOS_DEPLOYMENT_TARGET = 11.1
[info] [Xcode]
[info] [Xcode] [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body[debug] [XCUITest] Log file for xcodebuild test: /var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-726DC4C3-62AD-46C5-AB25-360ABA197F8A/WebDriverAgentRunner-7C5C97BE-CE58-4E46-A147-07D298876CCC/Session-WebDriverAgentRunner-2017-11-23_102616-qXgXCx.log
[info] [Xcode] 2017-11-23 10:26:16.192 xcodebuild[56887:911540] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
[info] [Xcode] /var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-726DC4C3-62AD-46C5-AB25-360ABA197F8A/WebDriverAgentRunner-7C5C97BE-CE58-4E46-A147-07D298876CCC/Session-WebDriverAgentRunner-2017-11-23_102616-qXgXCx.log
[info] [Xcode]
[info] [Xcode] 2017-11-23 10:26:16.193 xcodebuild[56887:911105] [MT] IDETestOperationsObserverDebug: (EF3FE0D4-1E00-41D1-AB14-B95736096928) Beginning test session WebDriverAgentRunner-EF3FE0D4-1E00-41D1-AB14-B95736096928 at 2017-11-23 10:26:16.193 with Xcode 9B55 on target
[info] [Xcode] SimDevice: iPhone 8 (6303E4FE-6320-4472-8F7F-E8F15C371359, iOS 11.1, Booted)
[info] [Xcode] } (11.1 (15B87))
[info] [Xcode] [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[info] [Xcode] 2017-11-23 10:26:16.516 xcodebuild[56887:911105] Error Domain=IDEFoundationErrorDomain Code=1 "Cannot launch simulated executable: no file found at /Users/qaadmin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app" UserInfo={NSLocalizedDescription=Cannot launch simulated executable: no file found at /Users/qaadmin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app}
[info] [Xcode] 2017-11-23 10:26:16.516 xcodebuild[56887:911105] 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] 2017-11-23 10:26:16.517 xcodebuild[56887:912122] Connection peer refused channel request for "dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"; channel canceled
[info] [Xcode]
[info] [Xcode] * TEST EXECUTE FAILED *
[info] [Xcode]
[info] [Xcode]
[info] [XCUITest] xcodebuild exited with code '65' and signal 'null'
[info] [Xcode] Contents of xcodebuild log file '/var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-726DC4C3-62AD-46C5-AB25-360ABA197F8A/WebDriverAgentRunner-7C5C97BE-CE58-4E46-A147-07D298876CCC/Session-WebDriverAgentRunner-2017-11-23_102616-qXgXCx.log':
[info] [Xcode] 10:26:16.193 xcodebuild[56887:911105] Beginning test session WebDriverAgentRunner-EF3FE0D4-1E00-41D1-AB14-B95736096928 at 2017-11-23 10:26:16.193 with Xcode 9B55 on target
[info] [Xcode] SimDevice: iPhone 8 (6303E4FE-6320-4472-8F7F-E8F15C371359, iOS 11.1, Booted)
[info] [Xcode] } (11.1 (15B87))
[info] [Xcode] 10:26:16.194 xcodebuild[56887:911105] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
[info] [Xcode] test-without-building
[info] [Xcode] -project
[info] [Xcode] /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[info] [Xcode] -scheme
[info] [Xcode] WebDriverAgentRunner
[info] [Xcode] -destination
[info] [Xcode] id=6303E4FE-6320-4472-8F7F-E8F15C371359
[info] [Xcode] IPHONEOS_DEPLOYMENT_TARGET=11.1
[info] [Xcode] 10:26:16.194 xcodebuild[56887:911105] Launching with Xcode.IDEFoundation.Launcher.PosixSpawn
[info] [Xcode] 10:26:16.196 xcodebuild[56887:911105] Test standard output and standard error is at /var/folders/d3/7p6ndjdx2s59sprtvg8f5gj40000gp/T/com.apple.dt.XCTest/IDETestRunSession-726DC4C3-62AD-46C5-AB25-360ABA197F8A/WebDriverAgentRunner-7C5C97BE-CE58-4E46-A147-07D298876CCC/StandardOutputAndStandardError.txt
[info] [Xcode] 10:26:16.197 xcodebuild[56887:911105] Simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was claimed by TestSessionClaim_IDETestRunSession-726DC4C3-62AD-46C5-AB25-360ABA197F8A
[info] [Xcode] 10:26:16.238 xcodebuild[56887:911105] Launch session started.
[info] [Xcode] 10:26:16.252 xcodebuild[56887:911105] Setting up test runner session
[info] [Xcode] 10:26:16.252 xcodebuild[56887:912231] Sim iPhone 8: Unregistering for sim device notification with token 4
[info] [Xcode] 10:26:16.253 xcodebuild[56887:912231] Calling -[SimDevice getenv:error:] for TESTMANAGERD_SIM_SOCK
[info] [Xcode] 10:26:16.253 xcodebuild[56887:912231] Sim iPhone 8 has testmanagerd socket at /private/tmp/com.apple.launchd.BBaL3yeGuV/com.apple.testmanagerd.unix-domain.socket
[info] [Xcode] 10:26:16.253 xcodebuild[56887:912231] Validating test connection socket path (/private/tmp/com.apple.launchd.BBaL3yeGuV/com.apple.testmanagerd.unix-domain.socket)
[info] [Xcode] 10:26:16.254 xcodebuild[56887:912231] Constructing transport for test connection socket
[info] [Xcode] 10:26:16.254 xcodebuild[56887:912231] Connected socket 49 to testmanagerd for Sim iPhone 8
[info] [Xcode] 10:26:16.254 xcodebuild[56887:912223] Simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was claimed by LaunchSessionClaim_0x7f9d5a378100
[info] [Xcode] 10:26:16.255 xcodebuild[56887:912232] Received connection for test runner session
[info] [Xcode] 10:26:16.255 xcodebuild[56887:912232] Listening for proxy connection request from the test bundle
[info] [Xcode] 10:26:16.256 xcodebuild[56887:912232] Initiating session with identifier: EF3FE0D4-1E00-41D1-AB14-B95736096928
[info] [Xcode] 10:26:16.256 xcodebuild[56887:911105] Adding console adaptor
[info] [Xcode] 10:26:16.256 xcodebuild[56887:912229] Simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was claimed by LaunchSessionClaim_0x7f9d5a378100
[info] [Xcode] 10:26:16.256 xcodebuild[56887:912229] 6303E4FE-6320-4472-8F7F-E8F15C371359: Registered for sim device notification, got token 5
[info] [Xcode] 10:26:16.257 xcodebuild[56887:912223] 6303E4FE-6320-4472-8F7F-E8F15C371359: Unregistering for sim device notification with token 5
[info] [Xcode] 10:26:16.257 xcodebuild[56887:911105] Claim LaunchSessionClaim_0x7f9d5a378100 on simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was relinquished
[info] [Xcode] 10:26:16.257 xcodebuild[56887:911105] Claim LaunchSessionClaim_0x7f9d5a378100 on simulator 6303E4FE-6320-4472-8F7F-E8F15C371359 was relinquished
[info] [Xcode] 10:26:16.258 xcodebuild[56887:911105] Test runner session acquired connection.
[info] [Xcode] 10:26:16.258 xcodebuild[56887:911105] Waiting for test process to launch.
[info] [Xcode] 10:26:16.258 xcodebuild[56887:911105] Test operation failure: Launch session expired before checking in.
[info] [Xcode] 10:26:16.258 xcodebuild[56887:911105] _finishWithError:Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Launch session expired before checking in." UserInfo={NSLocalizedDescription=Launch session expired before checking in.}
[info] [Xcode]
[debug] [BaseDriver] Event 'wdaStartFailed' logged at 1511403976557 (10:26:16 GMT+0800 (+08))
[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
Hi guys,
i have a related issue. not able to make the launch the app and weDriverAgentRunner also xcode build failure and able to relaunch wedDriverAgentRunner while running the command in terminal
Terminal command:
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=7cd93c439dd54d4a7e82ba55345ba5c882520892' test
log generated in ternimal:
A2MD24805M:WebDriverAgent arun$ xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=7cd93c439dd54d4a7e82ba55345ba5c882520892' test
2017-12-11 12:17:49.400 xcodebuild[13628:230721] DTDeviceKit: deviceType from 7cd93c439dd54d4a7e82ba55345ba5c882520892 was NULL
2017-12-11 12:17:51.193 xcodebuild[13628:230831] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/var/folders/3z/_tmczf_95md7hb_grsvsdhww0000gp/T/com.apple.dt.XCTest/IDETestRunSession-CB02A15B-8486-43A4-B1DE-009E179197B8/WebDriverAgentRunner-04BDC44E-55FA-4EB9-8F0C-EDA79A534DBE/Session-WebDriverAgentRunner-2017-12-11_121751-POoxJh.log
2017-12-11 12:17:51.197 xcodebuild[13628:230679] [MT] IDETestOperationsObserverDebug: (7A4293A3-5316-4872-A87A-C2A4D1A56A70) Beginning test session WebDriverAgentRunner-7A4293A3-5316-4872-A87A-C2A4D1A56A70 at 2017-12-11 12:17:51.195 with Xcode 9B55 on target
deviceSerialNumber: DMPR9D7QG5WQ
identifier: 7cd93c439dd54d4a7e82ba55345ba5c882520892
deviceClass: iPad
deviceName: iPad
deviceIdentifier: 7cd93c439dd54d4a7e82ba55345ba5c882520892
productVersion: 11.0.3
buildVersion: 15A432
deviceSoftwareVersion: 11.0.3 (15A432)
deviceArchitecture: arm64
deviceTotalCapacity: 12849741824
deviceAvailableCapacity: 9453690880
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsActivated: YES
deviceActivationState: Activated
isPasscodeLocked: NO
deviceType:
supportedDeviceFamilies: (
1,
2
)
applications: (null)
provisioningProfiles: (null)
hasInternalSupport: NO
isSupportedOS: YES
developerDiskMountError: (null)
(null)
bootArgs:
connected: yes
isWirelessEnabled: no
connectionType: direct
} (11.0.3 (15A432))
=== BUILD TARGET WebDriverAgentLib OF PROJECT WebDriverAgent WITH CONFIGURATION Debug ===
Check dependencies
=== BUILD TARGET WebDriverAgentRunner OF PROJECT WebDriverAgent WITH CONFIGURATION Debug ===
Check dependencies
writeDictToFile:1278 ==== Successfully wrote Manifest cache to /var/folders/3z/_tmczf_95md7hb_grsvsdhww0000gp/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/00fd311606a9a315a6d96b40b7c58aa3/7cd93c439dd54d4a7e82ba55345ba5c882520892/ManifestCache.plist
2017-12-11 12:17:58.993 xcodebuild[13628:230679] Error Domain=com.apple.platform.iphoneos Code=-12 "Unable to launch com.apple.test.WebDriverAgentRunner-Runner" UserInfo={NSLocalizedDescription=Unable to launch com.apple.test.WebDriverAgentRunner-Runner, NSUnderlyingError=0x7fea173306c0 {Error Domain=DTXMessage Code=1 "(null)" UserInfo={DTXExceptionKey=The operation couldn’t be completed. Unable to launch com.apple.test.WebDriverAgentRunner-Runner 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.apple.test.WebDriverAgentRunner-Runner'}}}
2017-12-11 12:17:58.993 xcodebuild[13628:230679] 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}
Testing failed:
Early unexpected exit, operation never finished bootstrapping - no restart will be attempted
* TEST FAILED *
can anybody please help me on this
just build the WebDriverAgenet.xcodeProject.
Hi @sgupta3112,
i was using the below command to build the WebDriverAgent in real device, but at the end it will prompt the error stating dat Testing Failed:
Terminal command:
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=7cd93c439dd54d4a7e82ba55345ba5c882520892' test
Try to build it using xcode. Do manage code signin as well.
I guess provisioning profiles have not been added.
On Mon, Dec 11, 2017 at 3:03 PM, sgupta3112 notifications@github.com
wrote:
Try to build it using xcode. Do manage code signin as well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/appium/appium/issues/8062#issuecomment-350669600, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABPjy7VrLMC5fOeJczP-sCmScPOhhS-Fks5s_PbrgaJpZM4MiWjT
.
--
thejus krishna
alumnus, govt. model engineering college, cochin (2006-10)
+91-8105912640 (bangalore)
+91-9895222064 (cochin)
Hi @sgupta3112 👍
i have done the code sigining properly in and the build got successes, do i need to do the same for WeDriverAgentLib and integrationApp in xcode
Provisioning profile also added but it has the app package
"com.zoll.navigatorapp", shall i change to "com.zoll.WeDriverAgentRunner"
Hi @thejuskrishna,
Provisioning profile also accepted and it is also also added with app package
"com.zoll.navigatorapp", shall i change to "com.zoll.WeDriverAgentRunner"
Can you try adding wild card provisioning profile and try again?
On Mon, Dec 11, 2017 at 3:13 PM, ShanmukhaArun notifications@github.com
wrote:
Hi @thejuskrishna https://github.com/thejuskrishna,
Provisioning profile also accepted and it is also also added with app
package
"com.zoll.navigatorapp", shall i change to "com.zoll.WeDriverAgentRunner"—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/appium/appium/issues/8062#issuecomment-350672114, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABPjyyG08uLA2RjisK0e0rorrCSIgoWSks5s_PlFgaJpZM4MiWjT
.
--
thejus krishna
alumnus, govt. model engineering college, cochin (2006-10)
+91-8105912640 (bangalore)
+91-9895222064 (cochin)
I think we shouldn't change the package name and instead put WC provisioning profile.
I am still facing that issue :( . anyone can tell me exactly what need to be done ? It was good but suddenly it stopped working and throwing that error
Are you seeing any pop ups on the screen? Also did you try the xcode-build
command manually?
On 07-Feb-2018 5:16 PM, "kumaramitb" notifications@github.com wrote:
I am still facing that issue :( . anyone can tell me exactly what need to
be done ? It was good but suddenly it stopped working and throwing that
error
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/appium/appium/issues/8062#issuecomment-363744816, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABPjy5jLq_tRZK_Vrrt5EcXoiPg5i8hlks5tSY0ygaJpZM4MiWjT
.
Yes , I did that . even i am not able to locate WebDriverAgent.xcodeproj anywhere in my mac .
It should be on that location .
/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent.
Are you using appium desktop or appium installed from brew?
On 07-Feb-2018 5:25 PM, "kumaramitb" notifications@github.com wrote:
Yes , I did that . even i am not able to locate WebDriverAgent.xcodeproj
anywhere in my mac .
It should be on that location .
/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/appium/appium/issues/8062#issuecomment-363746670, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABPjy85TC3MCbXZ6kCHy-AEfQdwXuBLAks5tSY8dgaJpZM4MiWjT
.
Hi I tried this, cd Applications/Appium.app/Contents/Resources/app
npm install
This fixed my issue..
@jyothi4 Unfortunately that didn't work for me... 😞
@imurchie Could you please have a look at my log here: https://gist.github.com/bruzkovsky/6f6796e8186b556134c29bc87fb09d5b
I use Appium Desktop and try to create a session from the GUI, it installs my app on the device but then fails with this "Xcode error 65"...
The logs say Code Signing Error: Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor. but where would I select that team in which project editor?
@bruzkovsky The configuration information is here: https://github.com/appium/appium/blob/master/docs/en/drivers/ios-xcuitest-real-devices.md
@imurchie Thanks, after reading the doc extra carefully I found a typo in my capabilities, xCodeOrgId and xCodeSigningId should be xcodeOrgIdand xcodeSigningIdrespectively.
Further, the steps for Basic (manual) configuration did the trick 🎉 🎈
Hello @imurchie
I tried all the Baisc (manual) configuration and it worked well through Xcode and command line, but when I try install through Appium I am getting "Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65"."
Please find attach the log file for the same
Appreciate your help on this.
appium-server-logs.txt
Hi,
It shows that:
The certificate used to sign "WebDriverAgentRunner-Runner" has either
expired or has been revoked. An updated certificate is required to sign and
install the application.
I think you have recreate your provisioning profile and install on the
phone.
On Fri, Mar 16, 2018 at 12:17 AM, karthikeyangs notifications@github.com
wrote:
Hello @imurchie https://github.com/imurchie
I tried all the Baisc (manual) configuration and it worked well through
Xcode and command line, but when I try install through Appium I am getting
"Encountered internal error running command: Error: Unable to launch
WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code
65"."
Please find attach the log file for the sameAppreciate your help on this.
appium-server-logs.txt
https://github.com/appium/appium/files/1816693/appium-server-logs.txt—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/appium/appium/issues/8062#issuecomment-373483556, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABPjy87_R4oRkxY0ahF2nlnPif2l63zuks5terczgaJpZM4MiWjT
.
--
thejus krishna
alumnus, govt. model engineering college, cochin (2006-10)
+91-8105912640 (bangalore)
+91-9895222064 (cochin)
@thejuskrishna Thanks for the quick response, I will try with different certificate and update you
@thejuskrishna I tried with a different developer account and it will expire by next year only, still got the same issue.
Appreciate your help on this
@karthikeyangs @bruzkovsky Guys, it happens when setup for appium have some problem in configuring webdriver-agent in appium library, you can even configure webdriver-agent with free apple developer account as well, follow these steps in video: https://www.youtube.com/watch?v=dyijACVRQOc
It worked for me, hope it will help everybody here!
Hi I to find the same error Xcodebuild failed with code65 and I have closely followed the instructions and still unable. Can anyone help me in this ASAP
May I know the exact scenario and error?
I was using the desktop version (1.5) and getting the error:
[XCUITest] 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.
After struggling on this error for some time, I installed the Appium (version 1.7.2) using the command line and my tests on real iPhone devices started to work.
I hope this information can be helpful :)
WebDriverAgent for appium desktop and command line appium are different.
Both needs to be setup in XCode with provisioning profiles.
On Wed, Apr 18, 2018 at 6:41 PM, Erich Flock notifications@github.com
wrote:
I was using the desktop version (1.5) and getting the error:
[XCUITest] 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.After struggling on this error for some time, I installed the Appium
(version 1.7.2) using the command line and my tests on real iPhone devices
started to work.I hope this information can be helpful :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/appium/appium/issues/8062#issuecomment-382380987, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABPjy-2UQYH3c36IvnFHfurXwCcTSNKiks5tpzuJgaJpZM4MiWjT
.
--
thejus krishna
alumnus, govt. model engineering college, cochin (2006-10)
+91-8105912640 (bangalore)
+91-9895222064 (cochin)
I was seeing this issue often today on an iPhone which was out of range of WiFi, but when a nearby router was restored Appium began to launch promptly! I could see it earlier trying to connect, the webdriveragent was translucent background, but then came the quitAndUninstall exception and right back to the home screen I was
Not sure if this is related but I have seen instances which doesn't quit
gracefully leaves a zombie iproxy connection preventing the next set of
runs to begin execution. In those cases, please kill the iproxy processes
to the phone and try again.
On Mon, Jul 9, 2018 at 2:51 AM gamesguru notifications@github.com wrote:
I was seeing this issue often today on an iPhone which was out of range of
WiFi, but when a nearby router was restored Appium began to launch
promptly! I could see it earlier trying to connect, the webdriveragent was
translucent background, but then came the quitAndUninstall exception and
right back to the home screen I was—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/appium/appium/issues/8062#issuecomment-403318128, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABPjyzk78XqkIUDF4830DGy9JyEOhyIFks5uEnfmgaJpZM4MiWjT
.
--
thejus krishna
alumnus, govt. model engineering college, cochin (2006-10)
+91-8105912640 (bangalore)
+91-9895222064 (cochin)
@thejuskrishna This is bizarre. Appium has code to find and kill hanging processes on startup, and iproxy should be one of them.
Was this added to the latest version of appium? I think I had noted this in
one of the earlier versions.
On Mon, Jul 9, 2018 at 11:10 PM Isaac A. Murchie notifications@github.com
wrote:
@thejuskrishna https://github.com/thejuskrishna This is bizarre. Appium
has code to find and kill hanging processes on startup, and iproxy should
be one of them.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/appium/appium/issues/8062#issuecomment-403560483, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABPjy6lBqAdOPF866TnfflEzag2j9gx7ks5uE5WKgaJpZM4MiWjT
.
--
thejus krishna
alumnus, govt. model engineering college, cochin (2006-10)
+91-8105912640 (bangalore)
+91-9895222064 (cochin)
It's been in for about a year.
I am also facing the same issue " Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". ".
Can you guys help me please.
[Appium] Welcome to Appium v1.8.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"app":"/Users/appium/eclipse-workspace/zedo/src/test/resources/TestAppForWnE.ipa","appium-version":"1.8.1","automationName":"XCuiTest","bundleid":"com.test.TestAppForWnE","clearSystemFiles":"true","deviceName":"iPhoneSE-Mumbai","newCommandTimeout":70000,"noReset":false,"platform":"MAC","platformName":"iOS","platformVersion":"10.13.4","showXcodeLog":"true","udid":"47fbc8183d0c97938e0ab72e0e5aceb22e25ed71","version":"11.3","xcodeOrgId":"ZP3VM2G6ED","xcodeSigningId":"iPhone Developer"},"capabilities":{"desiredCapabilities":{"app":"/Users/appium/eclipse-workspace/zedo/src/test/resources/TestAppForWnE.ipa","appium-version":"1.8.1","automationName":"XCuiTest","bundleid":"com.test.TestAppForWnE","clearSystemFiles":"true","deviceName":"iPhoneSE-Mumbai","newCommandTimeout":70000,"noReset":false,"platform":"MAC","platformName":"iOS","platformVersion":"10.13.4","showXcodeLog":"true","udid":"47fbc8183d0c97938e0ab72e0e5aceb22e25ed71","version":"11.3","xcodeOrgId":"ZP
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/appium/eclipse-workspace/zedo/src/test/resources/TestAppForWnE.ipa","appium-version":"1.8.1","automationName":"XCuiTest","bundleid":"com.test.TestAppForWnE","clearSystemFiles":"true","deviceName":"iPhoneSE-Mumbai","newCommandTimeout":70000,"noReset":false,"platform":"MAC","platformName":"iOS","platformVersion":"10.13.4","showXcodeLog":"true","udid":"47fbc8183d0c97938e0ab72e0e5aceb22e25ed71","version":"11.3","xcodeOrgId":"ZP3VM2G6ED","xcodeSigningId":"iPhone Developer"},null,{"desiredCapabilities":{"app":"/Users/appium/eclipse-workspace/zedo/src/test/resources/TestAppForWnE.ipa","appium-version":"1.8.1","automationName":"XCuiTest","bundleid":"com.test.TestAppForWnE","clearSystemFiles":"true","deviceName":"iPhoneSE-Mumbai","newCommandTimeout":70000,"noReset":false,"platform":"MAC","platformName":"iOS","platformVersion":"10.13.4","showXcodeLog":"true","udid":"47fbc8183d0c97938e0ab72e0e5aceb22e25ed71","version":"11.3","xcodeOrgId":"ZP3VM2G6ED","xcodeSigningId":"iPhone Developer"},"first...
[BaseDriver] Event 'newSessionRequested' logged at 1532672905555 (11:58:25 GMT+0530 (IST))
[Appium] Could not parse W3C capabilities: 'deviceName' can't be blank. Falling back to JSONWP protocol.
[Appium] The following capabilities were provided in the JSONWP desired capabilities that are missing in W3C capabilities: ["app","appium-version","automationName","bundleid","clearSystemFiles","deviceName","newCommandTimeout","noReset","platform","platformName","platformVersion","showXcodeLog","udid","version","xcodeOrgId","xcodeSigningId"]. Falling back to JSONWP protocol.
[Appium] Creating new XCUITestDriver (v2.84.0) session
[Appium] Capabilities:
[Appium] app: /Users/appium/eclipse-workspace/zedo/src/test/resources/TestAppForWnE.ipa
[Appium] appium-version: 1.8.1
[Appium] automationName: XCuiTest
[Appium] bundleid: com.test.TestAppForWnE
[Appium] clearSystemFiles: true
[Appium] deviceName: iPhoneSE-Mumbai
[Appium] newCommandTimeout: 70000
[Appium] noReset: false
[Appium] platform: MAC
[Appium] platformName: iOS
[Appium] platformVersion: 10.13.4
[Appium] showXcodeLog: true
[Appium] udid: 47fbc8183d0c97938e0ab72e0e5aceb22e25ed71
[Appium] version: 11.3
[Appium] xcodeOrgId: ZP3VM2G6ED
[Appium] xcodeSigningId: iPhone Developer
[BaseDriver] Creating session with MJSONWP desired capabilities: {"app":"/Users/appium/e...
[BaseDriver] Capability 'showXcodeLog' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'clearSystemFiles' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] The following capabilities were provided, but are not recognized by appium: appium-version, bundleid, platform, version.
[BaseDriver] Session created with session id: 24dae843-ad8c-4eaf-84b8-66ab8a7f21c1
[XCUITest] Current user: 'appium'
[XCUITest] Xcode version set to '9.3' (tools v9.4.0.0.1.1526532315)
[XCUITest] iOS SDK Version set to '11.3'
[BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1532672921237 (11:58:41 GMT+0530 (IST))
[XCUITest] Available devices: 47fbc8183d0c97938e0ab72e0e5aceb22e25ed71
[XCUITest] Creating iDevice object with udid '47fbc8183d0c97938e0ab72e0e5aceb22e25ed71'
[XCUITest] Determining device to run tests on: udid: '47fbc8183d0c97938e0ab72e0e5aceb22e25ed71', real device: true
[BaseDriver] Using local app '/Users/appium/eclipse-workspace/zedo/src/test/resources/TestAppForWnE.ipa'
[BaseDriver] Copying local zip to tmp dir
[BaseDriver] Unzipping local app '/var/folders/lh/jrfkh_5d5vn1b7_7n90zvdhw0000gn/T/2018627-1991-b8i6x3.sdvpq/appium-app.zip'...
[BaseDriver] Unzipping /var/folders/lh/jrfkh_5d5vn1b7_7n90zvdhw0000gn/T/2018627-1991-b8i6x3.sdvpq/appium-app.zip
[BaseDriver] Testing zip archive: /var/folders/lh/jrfkh_5d5vn1b7_7n90zvdhw0000gn/T/2018627-1991-b8i6x3.sdvpq/appium-app.zip
[BaseDriver] Unzipped local app to '/var/folders/lh/jrfkh_5d5vn1b7_7n90zvdhw0000gn/T/2018627-1991-b8i6x3.sdvpq/Payload/TestAppForWnE.app'
[BaseDriver] Event 'appConfigured' logged at 1532672923468 (11:58:43 GMT+0530 (IST))
[XCUITest] Checking whether app '/var/folders/lh/jrfkh_5d5vn1b7_7n90zvdhw0000gn/T/2018627-1991-b8i6x3.sdvpq/Payload/TestAppForWnE.app' is actually present on file system
[XCUITest] App is present
[iOS] Getting bundle ID from app '/var/folders/lh/jrfkh_5d5vn1b7_7n90zvdhw0000gn/T/2018627-1991-b8i6x3.sdvpq/Payload/TestAppForWnE.app': 'com.test.TestAppForWnE'
[BaseDriver] Event 'resetStarted' logged at 1532672923474 (11:58:43 GMT+0530 (IST))
[XCUITest] Reset: running ios real device reset flow
[BaseDriver] Event 'resetComplete' logged at 1532672923475 (11:58:43 GMT+0530 (IST))
[iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[iOSLog] Starting iOS device log capture with: 'idevicesyslog'
[BaseDriver] Event 'logCaptureStarted' logged at 1532672924228 (11:58:44 GMT+0530 (IST))
[XCUITest] Setting up real device
[XCUITest] Verifying application platform
[XCUITest] CFBundleSupportedPlatforms: ["iPhoneOS"]
[XCUITest] Reset requested. Removing app with id 'com.test.TestAppForWnE' from the device
[XCUITest] Installing '/var/folders/lh/jrfkh_5d5vn1b7_7n90zvdhw0000gn/T/2018627-1991-b8i6x3.sdvpq/Payload/TestAppForWnE.app' on device with UUID '47fbc8183d0c97938e0ab72e0e5aceb22e25ed71'...
[XCUITest] The app has been installed successfully.
[BaseDriver] Event 'appInstalled' logged at 1532672928664 (11:58:48 GMT+0530 (IST))
[XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[XCUITest] WDA is not listening at 'http://localhost:8100/'
[BaseDriver] Event 'wdaStartAttempted' logged at 1532672929117 (11:58:49 GMT+0530 (IST))
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: '/usr/local/bin/carthage'
[XCUITest] Killing running processes 'xcodebuild.47fbc8183d0c97938e0ab72e0e5aceb22e25ed71, iproxy 8100' for the device 47fbc8183d0c97938e0ab72e0e5aceb22e25ed71...
[XCUITest] 'pgrep -nif xcodebuild.47fbc8183d0c97938e0ab72e0e5aceb22e25ed71' didn't detect any matching processes. Return code: 1
[XCUITest] 'pgrep -nif iproxy 8100' didn't detect any matching processes. Return code: 1
[XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[XCUITest] Using Xcode 9.3, so fixing WDA codebase
[XCUITest] Generating xcode config file for orgId 'ZP3VM2G6ED' and signingId 'iPhone Developer'
[XCUITest] Writing xcode config file to /var/folders/lh/jrfkh_5d5vn1b7_7n90zvdhw0000gn/T/2018627-1991-rq7e69.kbp9k/appium-temp.xcconfig
[XCUITest] Using Xcode configuration file: '/var/folders/lh/jrfkh_5d5vn1b7_7n90zvdhw0000gn/T/2018627-1991-rq7e69.kbp9k/appium-temp.xcconfig'
[XCUITest] Beginning test with command 'xcodebuild build-for-testing 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=47fbc8183d0c97938e0ab72e0e5aceb22e25ed71 IPHONEOS_DEPLOYMENT_TARGET=10.13 -xcconfig /var/folders/lh/jrfkh_5d5vn1b7_7n90zvdhw0000gn/T/2018627-1991-rq7e69.kbp9k/appium-temp.xcconfig' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Output from xcodebuild will be logged. To change this, use 'showXcodeLog' desired capability
[Xcode] Build settings from command line:
[Xcode]
[XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] IPHONEOS_DEPLOYMENT_TARGET = 10.13
[Xcode]
[Xcode] Build settings from configuration file '/var/folders/lh/jrfkh_5d5vn1b7_7n90zvdhw0000gn/T/2018627-1991-rq7e69.kbp9k/appium-temp.xcconfig':
[Xcode] CODE_SIGN_IDENTITY = iPhone Developer
[Xcode] DEVELOPMENT_TEAM = ZP3VM2G6ED
[Xcode]
[Xcode]
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] === BUILD TARGET WebDriverAgentLib OF PROJECT WebDriverAgent WITH CONFIGURATION Debug ===
[Xcode]
[Xcode]
[Xcode] Check dependencies
[Xcode]
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] Code Signing Error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "ZP3VM2G6ED" with a private key was found.
[Xcode]
[Xcode]
[Xcode]
[Xcode] * TEST BUILD FAILED *
[Xcode]
[Xcode]
[Xcode] The following build commands failed:
[Xcode] Check dependencies
[Xcode] (1 failure)
[Xcode]
[XCUITest] Log file for xcodebuild test: /var/folders/lh/jrfkh_5d5vn1b7_7n90zvdhw0000gn/T/com.apple.dt.XCTest/IDETestRunSession-C95BCFFC-00B3-4E16-B0CD-7C5E8C4B349D/WebDriverAgentRunner-C742DB31-B4B2-48EC-8EAE-DBE8D0745342/Session-WebDriverAgentRunner-2018-07-27_115857-PCgZ7t.log
[Xcode] 2018-07-27 11:58:57.716 xcodebuild[6676:32632] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
[Xcode] /var/folders/lh/jrfkh_5d5vn1b7_7n90zvdhw0000gn/T/com.apple.dt.XCTest/IDETestRunSession-C95BCFFC-00B3-4E16-B0CD-7C5E8C4B349D/WebDriverAgentRunner-C742DB31-B4B2-48EC-8EAE-DBE8D0745342/Session-WebDriverAgentRunner-2018-07-27_115857-PCgZ7t.log
[Xcode]
[Xcode] 2018-07-27 11:58:57.717 xcodebuild[6676:32607] [MT] IDETestOperationsObserverDebug: (96306ADE-DD84-40A9-B28F-DB85E7E4A37E) Beginning test session WebDriverAgentRunner-96306ADE-DD84-40A9-B28F-DB85E7E4A37E at 2018-07-27 11:58:57.716 with Xcode 9E145 on target {
[Xcode] deviceSerialNumber: F17RH040H2XW
[Xcode] identifier: 47fbc8183d0c97938e0ab72e0e5aceb22e25ed71
[Xcode] deviceClass: iPhone
[Xcode] deviceName: iPhoneSE-Mumbai
[Xcode] deviceIdentifier: 47fbc8183d0c97938e0ab72e0e5aceb22e25ed71
[Xcode] productVersion: 11.3
[Xcode] buildVersion: 15E216
[Xcode] deviceSoftwareVersion: 11.3 (15E216)
[Xcode] deviceArchitecture: arm64
[Xcode] deviceTotalCapacity: 12567416832
[Xcode] deviceAvailableCapacity: 3451535360
[Xcode] deviceIsTransient: NO
[Xcode] ignored: NO
[Xcode] deviceIsBusy: NO
[Xcode] deviceIsActivated: YES
[Xcode] deviceActivationState: Activated
[Xcode] isPasscodeLocked: NO
[Xcode] deviceType:
[Xcode] supportedDeviceFamilies: (
[Xcode] 1
[Xcode] )
[Xcode] applications: (null)
[Xcode] provisioningProfiles: (null)
[Xcode] hasInternalSupport: NO
[Xcode] isSupportedOS: YES
[Xcode] developerDiskMountError: (null)
[Xcode] (null)
[Xcode] bootArgs:
[Xcode] connected: yes
[Xcode] isWirelessEnabled: no
[Xcode] connectionType: direct
[Xcode] } (11.3 (15E216))
[Xcode]
[Xcode] 2018-07-27 11:58:57.901 xcodebuild[6676:32607] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/appium/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fcb4543a7e0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
[Xcode]
[Xcode] 2018-07-27 11:58:57.902 xcodebuild[6676:32607] 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, NSUnderlyingError=0x7fcb4535c700 {Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/appium/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fcb4543a7e0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}}}
[Xcode]
[Xcode]
[Xcode] Testing failed:
[Xcode] No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "ZP3VM2G6ED" with a private key was found.
[Xcode] Early unexpected exit, operation never finished bootstrapping - no restart will be attempted
[Xcode] * TEST EXECUTE FAILED *
[Xcode]
[Xcode]
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[Xcode] Contents of xcodebuild log file '/var/folders/lh/jrfkh_5d5vn1b7_7n90zvdhw0000gn/T/com.apple.dt.XCTest/IDETestRunSession-C95BCFFC-00B3-4E16-B0CD-7C5E8C4B349D/WebDriverAgentRunner-C742DB31-B4B2-48EC-8EAE-DBE8D0745342/Session-WebDriverAgentRunner-2018-07-27_115857-PCgZ7t.log':
[Xcode] 11:58:57.718 xcodebuild[6676:32607] Beginning test session WebDriverAgentRunner-96306ADE-DD84-40A9-B28F-DB85E7E4A37E at 2018-07-27 11:58:57.716 with Xcode 9E145 on target {
[Xcode] deviceSerialNumber: F17RH040H2XW
[Xcode] identifier: 47fbc8183d0c97938e0ab72e0e5aceb22e25ed71
[Xcode] deviceClass: iPhone
[Xcode] deviceName: iPhoneSE-Mumbai
[Xcode] deviceIdentifier: 47fbc8183d0c97938e0ab72e0e5aceb22e25ed71
[Xcode] productVersion: 11.3
[Xcode] buildVersion: 15E216
[Xcode] deviceSoftwareVersion: 11.3 (15E216)
[Xcode] deviceArchitecture: arm64
[Xcode] deviceTotalCapacity: 12567416832
[Xcode] deviceAvailableCapacity: 3451535360
[Xcode] deviceIsTransient: NO
[Xcode] ignored: NO
[Xcode] deviceIsBusy: NO
[Xcode] deviceIsActivated: YES
[Xcode] deviceActivationState: Activated
[Xcode] isPasscodeLocked: NO
[Xcode] deviceType:
[Xcode] supportedDeviceFamilies: (
[Xcode] 1
[Xcode] )
[Xcode] applications: (null)
[Xcode] provisioningProfiles: (null)
[Xcode] hasInternalSupport: NO
[Xcode] isSupportedOS: YES
[Xcode] developerDiskMountError: (null)
[Xcode] (null)
[Xcode] bootArgs:
[Xcode] connected: yes
[Xcode] isWirelessEnabled: no
[Xcode] connectionType: direct
[Xcode] } (11.3 (15E216))
[Xcode] 11:58:57.745 xcodebuild[6676:32607] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
[Xcode] build-for-testing
[Xcode] test-without-building
[Xcode] -project
[Xcode] /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[Xcode] -scheme
[Xcode] WebDriverAgentRunner
[Xcode] -destination
[Xcode] id=47fbc8183d0c97938e0ab72e0e5aceb22e25ed71
[Xcode] IPHONEOS_DEPLOYMENT_TARGET=10.13
[Xcode] -xcconfig
[Xcode] /var/folders/lh/jrfkh_5d5vn1b7_7n90zvdhw0000gn/T/2018627-1991-rq7e69.kbp9k/appium-temp.xcconfig
[Xcode] 11:58:57.745 xcodebuild[6676:32607] Launching with Xcode.IDEFoundation.Launcher.PosixSpawn
[Xcode] 11:58:57.749 xcodebuild[6676:32607] Test standard output and standard error is at /var/folders/lh/jrfkh_5d5vn1b7_7n90zvdhw0000gn/T/com.apple.dt.XCTest/IDETestRunSession-C95BCFFC-00B3-4E16-B0CD-7C5E8C4B349D/WebDriverAgentRunner-C742DB31-B4B2-48EC-8EAE-DBE8D0745342/StandardOutputAndStandardError.txt
[Xcode] 11:58:57.756 xcodebuild[6676:32607] Setting up test runner session
[Xcode] 11:58:57.760 xcodebuild[6676:32752] Connecting to mobile device: 47fbc8183d0c97938e0ab72e0e5aceb22e25ed71
[Xcode] 11:58:57.762 xcodebuild[6676:32752] Starting session with mobile device
[Xcode] 11:58:57.786 xcodebuild[6676:32607] Launch session started.
[Xcode] 11:58:57.791 xcodebuild[6676:32752] Starting test manager service on mobile device.
[Xcode] 11:58:57.840 xcodebuild[6676:32607] Test operation failure: Launch session expired before checking in.
[Xcode] 11:58:57.840 xcodebuild[6676:32607] _finishWithError:Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Launch session expired before checking in." UserInfo={NSLocalizedDescription=Launch session expired before checking in.}
[Xcode]
[BaseDriver] Event 'wdaStartFailed' logged at 1532672937982 (11:58:57 GMT+0530 (IST))
[XCUITest] 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.
[XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 6659)
[XCUITest] iproxy exited with code 'null'
[XCUITest] Removing WDA application from device
[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.
[XCUITest] at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:427:13)
[XCUITest] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
[XCUITest] at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
[XCUITest] at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
[XCUITest] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[XCUITest] at
[XCUITest] 'pgrep -nif xcodebuild.*47fbc8183d0c97938e0ab72e0e5aceb22e25ed71' didn't detect any matching processes. Return code: 1
[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
[iOSLog] Stopping iOS log capture
[BaseDriver] Event 'newSessionStarted' logged at 1532672938202 (11:58:58 GMT+0530 (IST))
[MJSONWP] Encountered internal error running command: 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.
[MJSONWP] at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:427:13)
[MJSONWP] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
[MJSONWP] at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
[MJSONWP] at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
[MJSONWP] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[MJSONWP] at
[HTTP] <-- POST /wd/hub/session 500 32658 ms - 470
[HTTP]
@appiumlearner Check your xcode profile, and the whole web driver project. It returned the infamous exit code 65. Look into that.
I recently found out an internet connection on the iOS device is also a requirement for launching an Appium session. The things they never tell you
I am also facing the same issue " Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". ".
I've try to build the WebDriverAgentLib in XCode but it failed. The error is /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgentLib/Utilities/FBXPath.m:313:37: Implicit conversion from nullable pointer 'XCElementSnapshot * _Nullable' to non-nullable pointer type 'XCElementSnapshot * _Nonnull'
Can you guys help me please.
Fyi, I'm running on ios simulator
The logs when running appium:
[info] [Appium] Welcome to Appium v1.8.1[info] [HTTP] --> POST /wd/hub/session
[info] [HTTP] {"desiredCapabilities":{"app":"/Users/prdcuser/Documents/SourceSeleniumKeyDriven/SampleSource/InternationalMountains/build/Release-iphonesimulator/InternationalMountains.app","clearSystemFiles":true,"platformVersion":"10.1","automationName":"XCUITest","browserName":"","platformName":"iOS","deviceName":"iPhone 6"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/prdcuser/Documents/SourceSeleniumKeyDriven/SampleSource/InternationalMountains/build/Release-iphonesimulator/InternationalMountains.app","clearSystemFiles":true,"platformVersion":"10.1","automationName":"XCUITest","browserName":"","platformName":"iOS","deviceName":"iPhone 6"},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1533018945322 (13:35:45 GMT+0700 (WIB))
[info] [Appium] Creating new XCUITestDriver (v2.84.0) session
[info] [Appium] Capabilities:
[info] [Appium] app: /Users/prdcuser/Documents/SourceSeleniumKeyDriven/SampleSource/InternationalMountains/build/Release-iphonesimulator/InternationalMountains.app
[info] [Appium] clearSystemFiles: true
[info] [Appium] platformVersion: 10.1
[info] [Appium] automationName: XCUITest
[info] [Appium] browserName:
[info] [Appium] platformName: iOS
[info] [Appium] deviceName: iPhone 6
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {"app":"/Users/prdcuser/Doc...
[info] [BaseDriver] Session created with session id: f349470e-d67c-4f33-95c6-f19109d4ec5e[debug] [XCUITest] Xcode version set to '8.1' (tools v9.2.0.0.1.1510905681)[debug] [XCUITest] iOS SDK Version set to '10.1'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1533018946434 (13:35:46 GMT+0700 (WIB))[info] [iOSSim] Constructing iOS simulator for Xcode version 8.1 with udid '2B64189E-30C6-4003-8FE3-A997D441C29A'
[info] [XCUITest] Determining device to run tests on: udid: '2B64189E-30C6-4003-8FE3-A997D441C29A', real device: false
[info] [BaseDriver] Using local app '/Users/prdcuser/Documents/SourceSeleniumKeyDriven/SampleSource/InternationalMountains/build/Release-iphonesimulator/InternationalMountains.app'
[debug] [BaseDriver] Event 'appConfigured' logged at 1533018947030 (13:35:47 GMT+0700 (WIB))
[debug] [XCUITest] Checking whether app '/Users/prdcuser/Documents/SourceSeleniumKeyDriven/SampleSource/InternationalMountains/build/Release-iphonesimulator/InternationalMountains.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [iOS] Getting bundle ID from app '/Users/prdcuser/Documents/SourceSeleniumKeyDriven/SampleSource/InternationalMountains/build/Release-iphonesimulator/InternationalMountains.app': 'com.example.apple-samplecode.InternationalMountains'
[debug] [BaseDriver] Event 'resetStarted' logged at 1533018947033 (13:35:47 GMT+0700 (WIB))[info] [XCUITest] Not scrubbing third party app in anticipation of uninstall
[debug] [BaseDriver] Event 'resetComplete' logged at 1533018947177 (13:35:47 GMT+0700 (WIB))
[debug] [XCUITest] System log path: /Users/prdcuser/Library/Logs/CoreSimulator/2B64189E-30C6-4003-8FE3-A997D441C29A/system.log
[debug] [XCUITest] Starting log capture for iOS Simulator with udid '2B64189E-30C6-4003-8FE3-A997D441C29A', using 'tail -f -n 1 /Users/prdcuser/Library/Logs/CoreSimulator/2B64189E-30C6-4003-8FE3-A997D441C29A/system.log'
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1533018947243 (13:35:47 GMT+0700 (WIB))
[info] [XCUITest] Setting up simulator
[debug] [iOS] No reason to set locale
[debug] [iOS] No iOS / app preferences to set
[debug] [iOSSim] No Simulator cache items for cleanup were matched in '/Users/prdcuser/Library/Developer/CoreSimulator/Devices/2B64189E-30C6-4003-8FE3-A997D441C29A/data/Library/Caches'[debug] [iOSSim] The count of running Simulator UI client instances is 1
[info] [iOSSim] Both Simulator with UDID 2B64189E-30C6-4003-8FE3-A997D441C29A and the UI client are currently running
[debug] [BaseDriver] Event 'simStarted' logged at 1533018947668 (13:35:47 GMT+0700 (WIB))
[debug] [XCUITest] Verifying application platform[debug] [XCUITest] Reset requested. Removing app with id 'com.example.apple-samplecode.InternationalMountains' from the device[debug] [XCUITest] Installing '/Users/prdcuser/Documents/SourceSeleniumKeyDriven/SampleSource/InternationalMountains/build/Release-iphonesimulator/InternationalMountains.app' on Simulator with UUID '2B64189E-30C6-4003-8FE3-A997D441C29A'...[debug] [XCUITest] The app has been installed successfully.
[debug] [BaseDriver] Event 'appInstalled' logged at 1533018952724 (13:35:52 GMT+0700 (WIB))
[info] [XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[info] [XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'[debug] [XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] WDA is not listening at 'http://localhost:8100/'
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1533018952791 (13:35:52 GMT+0700 (WIB))
[info] [XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
[debug] [XCUITest] Killing running processes 'xcodebuild.2B64189E-30C6-4003-8FE3-A997D441C29A, iproxy 8100, 2B64189E-30C6-4003-8FE3-A997D441C29A.XCTRunner' for the device 2B64189E-30C6-4003-8FE3-A997D441C29A...[debug] [XCUITest] 'pgrep -nif iproxy 8100' didn't detect any matching processes. Return code: 1
[debug] [XCUITest] 'pgrep -nif 2B64189E-30C6-4003-8FE3-A997D441C29A.XCTRunner' didn't detect any matching processes. Return code: 1
[debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing 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=2B64189E-30C6-4003-8FE3-A997D441C29A IPHONEOS_DEPLOYMENT_TARGET=10.1' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/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] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body[debug] [XCUITest] Log file for xcodebuild test: /Users/prdcuser/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/B235D2A4-E71C-4730-98D3-73ECB8CF7B18/Session-WebDriverAgentRunner-2018-07-31_133555-KWgFUe.log
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body[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 1533018955569 (13:35:55 GMT+0700 (WIB))
[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 1533018965687 (13:36:05 GMT+0700 (WIB))
[info] [XCUITest] Launching WebDriverAgent on the device[debug] [XCUITest] Killing running processes 'xcodebuild.2B64189E-30C6-4003-8FE3-A997D441C29A, iproxy 8100, 2B64189E-30C6-4003-8FE3-A997D441C29A.XCTRunner' for the device 2B64189E-30C6-4003-8FE3-A997D441C29A...
[debug] [XCUITest] 'pgrep -nif xcodebuild.2B64189E-30C6-4003-8FE3-A997D441C29A' 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 2B64189E-30C6-4003-8FE3-A997D441C29A.XCTRunner' didn't detect any matching processes. Return code: 1
[debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing 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=2B64189E-30C6-4003-8FE3-A997D441C29A IPHONEOS_DEPLOYMENT_TARGET=10.1' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/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: /Users/prdcuser/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/986D950B-F25E-4377-8A73-D8BCFFB928A5/Session-WebDriverAgentRunner-2018-07-31_133607-pyUC3z.log
[info] [Xcode] 2018-07-31 13:36:07.445 xcodebuild[955:28094] Error Domain=IDEFoundationErrorDomain Code=1 "Cannot launch simulated executable: no file found at /Users/prdcuser/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app" UserInfo={NSLocalizedDescription=Cannot launch simulated executable: no file found at /Users/prdcuser/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app}
[info] [Xcode] 2018-07-31 13:36:07.445 xcodebuild[955:28094] Error Domain=IDETestOperationsObserverErrorDomain Code=5 "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-07-31 13:36:07.447 xcodebuild[955:28192] Connection peer refused channel request for "dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"; channel canceled
[info] [Xcode]
[info] [Xcode] *
[info] [Xcode]
[info] [Xcode] [info] [XCUITest] xcodebuild exited with code '65' and signal 'null'
[debug] [BaseDriver] Event 'wdaStartFailed' logged at 1533018967460 (13:36:07 GMT+0700 (WIB))
[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
[error] [XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65".
[error] [XCUITest] at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:427:13)
[error] [XCUITest] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
[error] [XCUITest] at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
[error] [XCUITest] at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
[error] [XCUITest] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[error] [XCUITest] at
[debug] [XCUITest] 'pgrep -nif xcodebuild.
[debug] [XCUITest] Cannot find xcodebuild's process id, so unable to retrieve DerivedData folder path
[warn] [XCUITest] No WebDriverAgent derived data available, so unable to clear system files
[debug] [iOSLog] Stopping iOS log capture
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1533018967616 (13:36:07 GMT+0700 (WIB))
[error] [MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65".
[error] [MJSONWP] at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:427:13)
[error] [MJSONWP] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
[error] [MJSONWP] at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
[error] [MJSONWP] at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
[error] [MJSONWP] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[error] [MJSONWP] at
[info] [HTTP] <-- POST /wd/hub/session 500 22301 ms - 235
[info] [HTTP]
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
I have found the solution for it.
Follow below steps:-
Go to /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
this path.
open WebDriverAgent.xcodeproj project in Xcode and do code signin at every place.
Build the application and make sure project getting build successfully.
Now you are good to go for app launching.