ERROR Appium v1.4.13 with device

The server is running
Start New SessionStop Server
[Appium] Welcome to Appium v1.6.4
[Appium] Non-default server args:
[Appium] address: 127.0.0.1
[Appium] Appium REST http interface listener started on 127.0.0.1:4723
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/equipobbva/Downloads/NXT_Peru_iPhone.ipa",“automationName”:“XCUITest”,“deviceName”:“iPhoneVHDR”,“platformName”:“iOS”,“platformVersion”:“10.3”,“udid”:“825a618a23dfff312f54d2f719b1844293aa5185”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/equipobbva/Downloads/NXT_Peru_iPhone.ipa",“automationName”:“XCUITest”,“deviceName”:“iPhoneVHDR”,“platformName”:“iOS”,“platformVersion”:“10.3”,“udid”:“825a618a23dfff312f54d2f719b1844293aa5185”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null,null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1495810422743 (09:53:42 GMT-0500 (-05))
[Appium] Creating new XCUITestDriver (v2.27.2) session
[Appium] Capabilities:
[Appium] app: ‘/Users/equipobbva/Downloads/NXT_Peru_iPhone.ipa’
[Appium] automationName: ‘XCUITest’
[Appium] deviceName: ‘iPhoneVHDR’
[Appium] platformName: ‘iOS’
[Appium] platformVersion: ‘10.3’
[Appium] udid: ‘825a618a23dfff312f54d2f719b1844293aa5185’
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[XCUITest] XCUITestDriver version: 2.27.2
[BaseDriver] Session created with session id: 1d27a6b9-be1f-4192-9e2f-84ea7b07b525
[XCUITest] Xcode version set to ‘8.3.2’ (tools v8.3.2.0.1.1492020469)
[XCUITest] iOS SDK Version set to ‘10.3’
[BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1495810423177 (09:53:43 GMT-0500 (-05))
[XCUITest] Available devices: 825a618a23dfff312f54d2f719b1844293aa5185, 825a618a23dfff312f54d2f719b1844293aa5185
[XCUITest] Creating iDevice object with udid ‘825a618a23dfff312f54d2f719b1844293aa5185’
[XCUITest] Determining device to run tests on: udid: ‘825a618a23dfff312f54d2f719b1844293aa5185’, real device: true
[BaseDriver] Using local app ‘/Users/equipobbva/Downloads/NXT_Peru_iPhone.ipa’
[BaseDriver] Copying local zip to tmp dir
[BaseDriver] Unzipping /var/folders/wz/1vnc91kj58bb9sjvlgc5hx040000gp/T/2017426-451-1ylo7xz.8nh035wmi/appium-app.zip
[BaseDriver] Testing zip archive: /var/folders/wz/1vnc91kj58bb9sjvlgc5hx040000gp/T/2017426-451-1ylo7xz.8nh035wmi/appium-app.zip
[BaseDriver] Unzipped local app to ‘/var/folders/wz/1vnc91kj58bb9sjvlgc5hx040000gp/T/2017426-451-1ylo7xz.8nh035wmi/Payload/NXT_Peru_iPhone.app’
[BaseDriver] Event ‘appConfigured’ logged at 1495810425572 (09:53:45 GMT-0500 (-05))
[XCUITest] Checking whether app ‘/var/folders/wz/1vnc91kj58bb9sjvlgc5hx040000gp/T/2017426-451-1ylo7xz.8nh035wmi/Payload/NXT_Peru_iPhone.app’ is actually present on file system
[XCUITest] App is present
[iOS] Getting bundle ID from app ‘/var/folders/wz/1vnc91kj58bb9sjvlgc5hx040000gp/T/2017426-451-1ylo7xz.8nh035wmi/Payload/NXT_Peru_iPhone.app’: ‘com.bbva.BBVAMovilPE99’
[BaseDriver] Event ‘resetStarted’ logged at 1495810425638 (09:53:45 GMT-0500 (-05))
[XCUITest] Reset: running ios real device reset flow
[BaseDriver] Event ‘resetComplete’ logged at 1495810425642 (09:53:45 GMT-0500 (-05))
[iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[iOSLog] Found idevicesyslog: ‘/usr/local/bin/idevicesyslog’
[BaseDriver] Event ‘logCaptureStarted’ logged at 1495810426120 (09:53:46 GMT-0500 (-05))
[XCUITest] Setting up real device
[XCUITest] Installing ‘/var/folders/wz/1vnc91kj58bb9sjvlgc5hx040000gp/T/2017426-451-1ylo7xz.8nh035wmi/Payload/NXT_Peru_iPhone.app’ on device with UUID ‘825a618a23dfff312f54d2f719b1844293aa5185’…
[XCUITest] Error: Could not install app: ‘Command ‘ios-deploy --id 825a618a23dfff312f54d2f719b1844293aa5185 --uninstall --bundle /var/folders/wz/1vnc91kj58bb9sjvlgc5hx040000gp/T/2017426-451-1ylo7xz.8nh035wmi/Payload/NXT_Peru_iPhone.app’ exited with code 253’
at IOSDeploy.install$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:38:13)
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
at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Error: Could not install app: ‘Command ‘ios-deploy --id 825a618a23dfff312f54d2f719b1844293aa5185 --uninstall --bundle /var/folders/wz/1vnc91kj58bb9sjvlgc5hx040000gp/T/2017426-451-1ylo7xz.8nh035wmi/Payload/NXT_Peru_iPhone.app’ exited with code 253’
at IOSDeploy.install$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:38:13)
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
at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
[iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: Could not install app: ‘Command ‘ios-deploy --id 825a618a23dfff312f54d2f719b1844293aa5185 --uninstall --bundle /var/folders/wz/1vnc91kj58bb9sjvlgc5hx040000gp/T/2017426-451-1ylo7xz.8nh035wmi/Payload/NXT_Peru_iPhone.app’ exited with code 253’
at IOSDeploy.install$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:38:13)
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
at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[HTTP] <-- POST /wd/hub/session 500 3906 ms - 377
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/equipobbva/Downloads/NXT_Peru_iPhone.ipa",“automationName”:“XCUITest”,“deviceName”:“iPhoneVHDR”,“platformName”:“iOS”,“platformVersion”:“10.3”,“udid”:“825a618a23dfff312f54d2f719b1844293aa5185”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/equipobbva/Downloads/NXT_Peru_iPhone.ipa",“automationName”:“XCUITest”,“deviceName”:“iPhoneVHDR”,“platformName”:“iOS”,“platformVersion”:“10.3”,“udid”:“825a618a23dfff312f54d2f719b1844293aa5185”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null,null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1495810473136 (09:54:33 GMT-0500 (-05))
[Appium] Creating new XCUITestDriver (v2.27.2) session
[Appium] Capabilities:
[Appium] app: ‘/Users/equipobbva/Downloads/NXT_Peru_iPhone.ipa’
[Appium] automationName: ‘XCUITest’
[Appium] deviceName: ‘iPhoneVHDR’
[Appium] platformName: ‘iOS’
[Appium] platformVersion: ‘10.3’
[Appium] udid: ‘825a618a23dfff312f54d2f719b1844293aa5185’
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[XCUITest] XCUITestDriver version: 2.27.2
[BaseDriver] Session created with session id: 8ac84de0-a025-4d9f-9f66-ac2690dc16eb
[XCUITest] Xcode version set to ‘8.3.2’ (tools v8.3.2.0.1.1492020469)
[XCUITest] iOS SDK Version set to ‘10.3’
[BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1495810473240 (09:54:33 GMT-0500 (-05))
[XCUITest] Available devices: 825a618a23dfff312f54d2f719b1844293aa5185, 825a618a23dfff312f54d2f719b1844293aa5185
[XCUITest] Creating iDevice object with udid ‘825a618a23dfff312f54d2f719b1844293aa5185’
[XCUITest] Determining device to run tests on: udid: ‘825a618a23dfff312f54d2f719b1844293aa5185’, real device: true
[BaseDriver] Using local app ‘/Users/equipobbva/Downloads/NXT_Peru_iPhone.ipa’
[BaseDriver] Copying local zip to tmp dir
[BaseDriver] Unzipping /var/folders/wz/1vnc91kj58bb9sjvlgc5hx040000gp/T/2017426-451-k84yg8.zmfxs6pqfr/appium-app.zip
[BaseDriver] Testing zip archive: /var/folders/wz/1vnc91kj58bb9sjvlgc5hx040000gp/T/2017426-451-k84yg8.zmfxs6pqfr/appium-app.zip
[BaseDriver] Unzipped local app to ‘/var/folders/wz/1vnc91kj58bb9sjvlgc5hx040000gp/T/2017426-451-k84yg8.zmfxs6pqfr/Payload/NXT_Peru_iPhone.app’
[BaseDriver] Event ‘appConfigured’ logged at 1495810475510 (09:54:35 GMT-0500 (-05))
[XCUITest] Checking whether app ‘/var/folders/wz/1vnc91kj58bb9sjvlgc5hx040000gp/T/2017426-451-k84yg8.zmfxs6pqfr/Payload/NXT_Peru_iPhone.app’ is actually present on file system
[XCUITest] App is present
[iOS] Getting bundle ID from app ‘/var/folders/wz/1vnc91kj58bb9sjvlgc5hx040000gp/T/2017426-451-k84yg8.zmfxs6pqfr/Payload/NXT_Peru_iPhone.app’: ‘com.bbva.BBVAMovilPE99’
[BaseDriver] Event ‘resetStarted’ logged at 1495810475569 (09:54:35 GMT-0500 (-05))
[XCUITest] Reset: running ios real device reset flow
[BaseDriver] Event ‘resetComplete’ logged at 1495810475570 (09:54:35 GMT-0500 (-05))
[iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[iOSLog] Found idevicesyslog: ‘/usr/local/bin/idevicesyslog’
[BaseDriver] Event ‘logCaptureStarted’ logged at 1495810476078 (09:54:36 GMT-0500 (-05))
[XCUITest] Setting up real device
[XCUITest] Installing ‘/var/folders/wz/1vnc91kj58bb9sjvlgc5hx040000gp/T/2017426-451-k84yg8.zmfxs6pqfr/Payload/NXT_Peru_iPhone.app’ on device with UUID ‘825a618a23dfff312f54d2f719b1844293aa5185’…
[XCUITest] The app has been installed successfully.
[BaseDriver] Event ‘appInstalled’ logged at 1495810480759 (09:54:40 GMT-0500 (-05))
[BaseDriver] Event ‘wdaStartAttempted’ logged at 1495810480763 (09:54:40 GMT-0500 (-05))
[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] 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/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=825a618a23dfff312f54d2f719b1844293aa5185 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3’ in directory ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/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
[XCUITest] Log file for xcodebuild test: /Users/equipobbva/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/240B4287-EA0A-40A7-87D0-5799D71CFFB7/Session-WebDriverAgentRunner-2017-05-26_095449-Zadtnq.log
[Xcode] 2017-05-26 09:54:49.873 xcodebuild[2530:49319] Error Domain=NSCocoaErrorDomain Code=260 “The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.” UserInfo={NSFilePath=/Users/equipobbva/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7f98c239e480 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}
[Xcode] 2017-05-26 09:54:49.873 xcodebuild[2530:49319] 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] ** TEST EXECUTE FAILED **
[Xcode]
[Xcode]
[XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’
[BaseDriver] Event ‘wdaStartFailed’ logged at 1495810489906 (09:54:49 GMT-0500 (-05))
[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 2529)
[XCUITest] iproxy exited with code ‘null’
[XCUITest] Removing WDA application from device
[XCUITest] Error : Command ‘ios-deploy --uninstall_only --id 825a618a23dfff312f54d2f719b1844293aa5185 --bundle_id com.apple.test.WebDriverAgentRunner-Runner’ exited with code 253
[BaseDriver] Event ‘wdaStartAttempted’ logged at 1495810500153 (09:55:00 GMT-0500 (-05))
[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] 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/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=825a618a23dfff312f54d2f719b1844293aa5185 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3’ in directory ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/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
[XCUITest] Log file for xcodebuild test: /Users/equipobbva/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/AA995209-5C76-40A4-9461-35963D4B5CC2/Session-WebDriverAgentRunner-2017-05-26_095507-vD9SmU.log
[Xcode] 2017-05-26 09:55:07.815 xcodebuild[2558:49547] Error Domain=NSCocoaErrorDomain Code=260 “The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.” UserInfo={NSFilePath=/Users/equipobbva/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fe6c143e470 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}
[Xcode] 2017-05-26 09:55:07.815 xcodebuild[2558:49547] 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] ** TEST EXECUTE FAILED **
[Xcode]
[Xcode]
[XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’
[BaseDriver] Event ‘wdaStartFailed’ logged at 1495810507851 (09:55:07 GMT-0500 (-05))
[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 2557)
[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:374: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
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/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/node_modules/appium-xcuitest-driver/lib/driver.js:374: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
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[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:374: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
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[HTTP] <-- POST /wd/hub/session 500 44983 ms - 230

{
“deviceName”: “iPhoneVHDR”,
“platformVersion”: “10.3”,
“automationName”: “XCUITest”,
“platformName”: “iOS”,
“udid”: “825a618a23dfff312f54d2f719b1844293aa5185”,
“app”: “/Users/equipobbva/Downloads/NXT_Peru_iPhone.ipa”
}

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

HELP

I think you’re executing test on real device, if yes, then we also need to specify devolper id in desired capabilities, please refer https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md for more detials.

if you are executing test on simulator, then try with .app file instead of .ipa file