I try to set up an .IPA file in APPIUM with iPhone device

ERROR: An unknown server-side error occurred while processing the command. Original error: Could not create simulator with name ‘appiumTest-a96750ff-161e-42bf-bba1-41d8fd1a961f’, device type id ‘iPhoneVHDR’ and runtime id ‘10.3’. Reason: ‘simctl error running ‘create’: Invalid device type: iPhoneVHDR’

The server is stopped
Close Logs
[Appium] Welcome to Appium v1.6.4
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“UDID”:“825a618a23dfff312f54d2f719b1844293aa5185”,“app”:"/Users/equipobbva/Downloads/NXT_Peru_iPhone.ipa",“automationName”:“Appium”,“deviceName”:“iPhoneVHDR”,“platformName”:“IOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“UDID”:“825a618a23dfff312f54d2f719b1844293aa5185”,“app”:"/Users/equipobbva/Downloads/NXT_Peru_iPhone.ipa",“automationName”:“Appium”,“deviceName”:“iPhoneVHDR”,“platformName”:“IOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null,null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1495738986716 (14:03:06 GMT-0500 (-05))
[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.27.2) session
[Appium] Capabilities:
[Appium] UDID: ‘825a618a23dfff312f54d2f719b1844293aa5185’
[Appium] app: ‘/Users/equipobbva/Downloads/NXT_Peru_iPhone.ipa’
[Appium] automationName: ‘Appium’
[Appium] deviceName: ‘iPhoneVHDR’
[Appium] platformName: ‘IOS’
[Appium] platformVersion: ‘10.3’
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[XCUITest] XCUITestDriver version: 2.27.2
[BaseDriver] The following capabilities were provided, but are not recognized by appium: UDID.
[BaseDriver] Session created with session id: a96750ff-161e-42bf-bba1-41d8fd1a961f
[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 1495738986963 (14:03:06 GMT-0500 (-05))
[XCUITest] Simulator udid not provided, using desired caps to create a new simulator
[simctl] Error: simctl error running ‘create’: Invalid device type: iPhoneVHDR
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:63:13)
at simCommand$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/node-simctl/lib/simctl.js:26:11)
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 throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Error: simctl error running ‘create’: Invalid device type: iPhoneVHDR
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:63:13)
at simCommand$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/node-simctl/lib/simctl.js:26:11)
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 throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[simctl] Error: Could not create simulator with name ‘appiumTest-a96750ff-161e-42bf-bba1-41d8fd1a961f’, device type id ‘iPhoneVHDR’ and runtime id ‘10.3’. Reason: ‘simctl error running ‘create’: Invalid device type: iPhoneVHDR’
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:63:13)
at createDevice$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/node-simctl/lib/simctl.js:95:9)
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 throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Error: Could not create simulator with name ‘appiumTest-a96750ff-161e-42bf-bba1-41d8fd1a961f’, device type id ‘iPhoneVHDR’ and runtime id ‘10.3’. Reason: ‘simctl error running ‘create’: Invalid device type: iPhoneVHDR’
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:63:13)
at createDevice$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/node-simctl/lib/simctl.js:95:9)
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 throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[XCUITest] Error: Could not create simulator with name ‘appiumTest-a96750ff-161e-42bf-bba1-41d8fd1a961f’, device type id ‘iPhoneVHDR’ and runtime id ‘10.3’. Reason: ‘simctl error running ‘create’: Invalid device type: iPhoneVHDR’
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:63:13)
at createDevice$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/node-simctl/lib/simctl.js:95:9)
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 throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Error: Could not create simulator with name ‘appiumTest-a96750ff-161e-42bf-bba1-41d8fd1a961f’, device type id ‘iPhoneVHDR’ and runtime id ‘10.3’. Reason: ‘simctl error running ‘create’: Invalid device type: iPhoneVHDR’
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:63:13)
at createDevice$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/node-simctl/lib/simctl.js:95:9)
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 throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
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.
[MJSONWP] Encountered internal error running command: Error: Could not create simulator with name ‘appiumTest-a96750ff-161e-42bf-bba1-41d8fd1a961f’, device type id ‘iPhoneVHDR’ and runtime id ‘10.3’. Reason: ‘simctl error running ‘create’: Invalid device type: iPhoneVHDR’
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:63:13)
at createDevice$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/node-simctl/lib/simctl.js:95:9)
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 throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
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 572 ms - 348
Appium server stopped successfully

{
“deviceName”: “iPhoneVHDR”,
“platformVersion”: “10.3”,
“automationName”: “Appium”,
“platformName”: “IOS”,
“UDID”: “825a618a23dfff312f54d2f719b1844293aa5185”,
“app”: “/Users/equipobbva/Downloads/NXT_Peru_iPhone.ipa”
}

I try to set up an .IPA file in APPIUM with iPhone device.

HELP!

Try with ‘udid’ instead of UDID:

https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/caps.md

This should be:

“automationName”: “XCUITest”

Since you are using iOS 10.3. Make sure you have Xcode 8.

Show me this error

[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] (/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:100:21)
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 58185 ms - 230

Help!!

I did the right thing and it still shows me the same error

List out the things that you did and show logs.

Show me this error

[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 58185 ms - 230

Help!!

Thanks for the logs. Can you list the steps you used to solve the issues? From the log it looks like you didn’t do anything.

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

Ok, once again that is a log. I gave you a link to some specific instructions, and you told me:

How am I supposed to know what you did? I’ve asked you to list out the things that you did so that I can try to help figure out the problem, but you just keep posting logs. I cannot reach through the internet and fix this for you. You need to help me to help you.

Perhaps you missed a step. Perhaps you didn’t consider something important, so you didn’t do it (but it was important). Perhaps you misread and did the wrong thing. All of these things could be what you meant by, ‘I did the right thing’.

There are many things that could have gone wrong here. Running Appium is not easy, and you will face many more challenges before you get through this. If you expect any help, you will have to be specific, and you will have to be detailed. You will also have to work very hard. I (and anyone on the internet) can try to help, but ultimately it is your responsibility to see this thing through.

The steps I took are as follows:

1.- Enable UI Automation on the device.
2.- In appium:
Host: 127.0.0.1
Port: 4723
3.- Configure capabilities:
{
“DeviceName”: “iPhoneVHDR”,
“PlatformVersion”: “10.3”,
“AutomationName”: “XCUITest”,
“PlatformName”: “iOS”,
“Udid”: “825a618a23dfff312f54d2f719b1844293aa5185”,
“App”: “/Users/equipobbva/Downloads/NXT_Peru_iPhone.ipa”
}
4.- “Start Session”

The error that I get is the following:
“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”

For this error, I followed the following steps:
Https://discuss.appium.io/t/xcodebuild-failed-with-code-65-warning-the-server-did-not-provide-any-stacktrace-information-command-duration-or-timeout-32- 63-seconds / 12756/4

However, I still get the same error.

Ok, I’m going to cut and paste the resolutions steps. Please follow these and let me know what challenges and errors you face. Please let me know if you skip or don’t understand a step:

$ cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/
$ npm install -g carthage --HEAD
$ open .

This is the location where the webDriver agent is saved check if you have webdriver agent xcode project. It should look like this :

Screen Shot 2016-10-18 at 11.49.45 AM.png822x748 85.2 KB
open the xcode project and follow the below steps for the creating the xcodeConfigfile which is at bottom in the image

  1. Open the existing the WebDriver Agent
  2. On top of Xcode you File > New> File , then you will an pop up something like this
  3. Select OSX->.Other-> Select Configuration settings file.
  4. Paste the following things in newly created file.
    DEVELOPMENT_TEAM = xxxxxxxxx
    CODE_SIGN_IDENTITY = iPhone Developer
    Development team is Team ID which your developer should be able to provide . Dont change the CODE_SIGN_IDENTITY.

Screen Shot 2016-10-18 at 11.56.02 AM.png1472x1050 97.7 KB
Once you save the file , make sure you add this file as a capability in your java code .

Thank you very much, I was able to solve the problem.

1 Like