This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
13 / 84
Oct 2016

Can some one please walk through the exact steps of how we need to install appium 1.6?

I can successfully able to launch my simulator, but before completing simulator bootstrap, appium trying to get install the app on simulator thats why I got below error (thats what I understood with below error log) please help me to get out below error. Thanks Shabana:

PS: I try to follow steps mentioned in https://github.com/appium/appium/issues/6853126

[Appium] Welcome to Appium v1.6.0 (REV f653cb8340de3c9acd1ddfb75c1a8c8f3195834a)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/f2849/Desktop/ShineDev2016-10-14/ShineDev.ipa","sendKeyStrategy":"grouped","newCommandTimeout":"9000","platformVersion":"10.0","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone 5"}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/f2849/Deskt...
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] app: '/Users/f2849/Desktop/ShineDev2016-10-14/ShineDev.ipa'
[Appium] sendKeyStrategy: 'grouped'
[Appium] newCommandTimeout: '9000'
[Appium] platformVersion: '10.0'
[Appium] automationName: 'XCUITest'
[Appium] platformName: 'iOS'
[Appium] deviceName: 'iPhone 5'
[debug] [XCUITest] XCUITestDriver version: 2.0.26
[BaseDriver] Capability 'newCommandTimeout' changed from string ('9000') to integer (9000). This may cause unexpected behavior
[BaseDriver] Session created with session id: c4360084-df3d-4d30-9bcf-6315d3843148
[debug] [XCUITest] Xcode version set to '8.0'
[debug] [XCUITest] iOS SDK Version set to '10.0'
[iOSSim] Constructing iOS simulator for Xcode version 8.0 with udid '4FE61E16-B812-4E15-9A7B-9DC062CB10F3'
[XCUITest] Determining device to run tests on: udid: '4FE61E16-B812-4E15-9A7B-9DC062CB10F3', real device: false
[BaseDriver] Using local app '/Users/f2849/Desktop/ShineDev2016-10-14/ShineDev.ipa'
[debug] [BaseDriver] Copying local zip to tmp dir
[debug] [BaseDriver] Unzipping /var/folders/st/41dk4fnd10518617jytfvjhh0000gq/T/2016919-39298-1jisrrs.ranzlac3di/appium-app.zip
[debug] [BaseDriver] Testing zip archive: /var/folders/st/41dk4fnd10518617jytfvjhh0000gq/T/2016919-39298-1jisrrs.ranzlac3di/appium-app.zip
[BaseDriver] Unzipped local app to '/var/folders/st/41dk4fnd10518617jytfvjhh0000gq/T/2016919-39298-1jisrrs.ranzlac3di/Payload/ShineDev.app'
[debug] [XCUITest] Checking whether app is actually present
[debug] [ios-app-utils] Getting bundle ID from app
[debug] [iOSLog] Starting iOS 10.0 simulator log capture
[debug] [iOSLog] System log path: /Users/f2849/Library/Logs/CoreSimulator/4FE61E16-B812-4E15-9A7B-9DC062CB10F3/system.log
[XCUITest] Setting up simulator
[debug] [iOS] No reason to set locale
[debug] [iOS] No iOS / app preferences to set
[XCUITest] Simulator with udid '4FE61E16-B812-4E15-9A7B-9DC062CB10F3' not booted. Booting up now
[debug] [iOSSim] Killing all iOS Simulators
[iOSSim] Starting simulator with command: open /Users/f2849/Documents/NewVolume/Softwares/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID 4FE61E16-B812-4E15-9A7B-9DC062CB10F3
[iOSSim] Tailing simulator logs until we encounter the string "SMS Plugin initialized"
[iOSSim] We will time out after 60000ms
[debug] [iOSSim] Simulator startup timed out. Continuing anyway.
[debug] [iOSSim] Waiting an extra 10000ms for the simulator to really finish booting
[debug] [iOSSim] Done waiting extra time for simulator
[iOSSim] Simulator booted in 70411ms
[debug] [XCUITest] Installing app '/var/folders/st/41dk4fnd10518617jytfvjhh0000gq/T/2016919-39298-1jisrrs.ranzlac3di/Payload/ShineDev.app' on device
[XCUITest] Using default agent: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[XCUITest] Using default bootstrap: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage not found. Install using brew install carthage
[debug] [XCUITest] Running WebDriverAgent bootstrap script to install dependencies
[XCUITest] Error: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 1
at ChildProcess. (lib/teen_process.js:66:19)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:852:16)
at Process.ChildProcess.handle.onexit (internal/childprocess.js:215:5)
{ Error: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 1
at ChildProcess. (lib/teen_process.js:66:19)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:852:16)
at Process.ChildProcess.handle.onexit (internal/childprocess.js:215:5)
stdout: '\u001b[1mFetching dependencies\nPlease make sure that you have Carthage installed (https://github.com/Carthage/Carthage)\nNote: We are expecting that carthage installed in /usr/local/bin/\n',
stderr: '',
code: 1 }
[debug] [XCUITest] Running iOS simulator reset flow
[debug] [XCUITest] Shutting down simulator
[debug] [iOSSim] Killing all iOS Simulators
[debug] [XCUITest] Cleaning simulator state.
[debug] [iOSSim] Cleaning app data files for 'ShineDev.app', 'com.htmedia.shine'
[debug] [iOSSim] Building bundle path map
[debug] [iOSSim] Building bundle path map
[debug] [iOSSim] Deleting directory: '/Users/f2849/Library/Developer/CoreSimulator/Devices/4FE61E16-B812-4E15-9A7B-9DC062CB10F3/data/Containers/Data/Application/A826EB9B-8BAE-42F4-B850-B5606517A9CA'
[debug] [iOSSim] Deleting directory: '/Users/f2849/Library/Developer/CoreSimulator/Devices/4FE61E16-B812-4E15-9A7B-9DC062CB10F3/data/Containers/Bundle/Application/E5CACB2F-9AC1-4724-A80C-4629A376A9F3'
[debug] [iOSSim] Deleting file: '/Users/f2849/Library/Developer/CoreSimulator/Devices/Library/Preferences/com.htmedia.shine.plist'
[debug] [iOSSim] Killing any simulator daemons for 4FE61E16-B812-4E15-9A7B-9DC062CB10F3
[iOSSim] Cleaning simulator 4FE61E16-B812-4E15-9A7B-9DC062CB10F3
[debug] [XCUITest] Resetting simulator
[debug] [XCUITest] Shutting down simulator
[debug] [iOSSim] Killing all iOS Simulators
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 1
at ChildProcess. (lib/teen_process.js:66:19)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:852:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
[HTTP] <-- POST /wd/hub/session 500 377205 ms - 199

Hello,

Even I am able to launch the simulator successfully but getting an error as -

Error: listen EADDRINUSE 0.0.0.0:4723
at Object.exports._errnoException (util.js:890:11)
at exports._exceptionWithHostPort (util.js:913:20)
at Server._dirname.Server.Server.listen2 (net.js:1230:14)
at listen (net.js:1266:10)
at net.js:1375:9
at combinedTickCallback (internal/process/nexttick.js:77:11)
at process.tickCallback (internal/process/nexttick.js:98:9)

I am working with Xcode8 , ios10 and, automation_name = XCUITest. Please if anyone can help to automate the app further as Apple has completely removed the UIAutomation instrument, thus making it impossible for Appium to allow testing in the way it used to.

Hi shabana-parveen,
Seems like you don't have carthage installed. Please install by running:

brew install carthage

on MAC,
download Node v6, LTS
in bash, type sudo npm install -g appium@latest
once its done, close
open new terminal type in appium

Hi Folks, I wanted to know whether it would be possible to automate iOS App store search and get App info, i dont want to download any app, just want to perform search and get app info, could anyone provide their comments on this please

hey can you please tell me from where u installed appium 1.6 beta version and how to install?
I tried to install appium 1.6 but getting the same error what you got...
Please let me know

Hi, tried ur suggestion " brew install carthage ". still no luck, was getting same error as shabana-parveen. Hope to find the solution ASAP :slight_smile:

Is there any way to download the latest beta without npm? I'm behind a proxy and can not bypass it...

Hi,

can you give a hint when the Appium 1.6.0 with GUI will be release for MacOS?

Greets

Hi Folks, I am trying to use appium 1.6.0 with ios10 app build with Xcode 8. I and facing below issue. We have set signing certifcate and provisioning profile for WebdriverAgentRunner, as mentioned on https://discuss.appium.io/t/ios-10-with-xcode-8-issue/12267. still we facing same issue. Could anyone help in this?

[Appium] Welcome to Appium v1.6.0 (REV b134e1af00e0aa83f686e31c020c9b2b4ce53b18)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"deviceName":"iPhone 6s","udid":"cfc28f7a68b714e7f0e188bbb802e5316b7643cb","app":"/Users/nagarro/Desktop/Melody_app/home-owner-app.app","autoWebview":"true","realDeviceLogger":"/usr/local/lib/node_modules/deviceconsole/deviceconsole","sendKeyStrategy":"setValue","newCommandTimeout":9000,"platformVersion":"10.0","platformName":"iOS","automationName":"XCUITest"}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"iPhone 6s",...
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] deviceName: 'iPhone 6s'
[Appium] udid: 'cfc28f7a68b714e7f0e188bbb802e5316b7643cb'
[Appium] app: '/Users/nagarro/Desktop/Melody_app/home-owner-app.app'
[Appium] autoWebview: 'true'
[Appium] realDeviceLogger: '/usr/local/lib/node_modules/deviceconsole/deviceconsole'
[Appium] sendKeyStrategy: 'setValue'
[Appium] newCommandTimeout: 9000
[Appium] platformVersion: '10.0'
[Appium] platformName: 'iOS'
[Appium] automationName: 'XCUITest'
[debug] [XCUITest] XCUITestDriver version: 2.0.26
[BaseDriver] Capability 'autoWebview' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Session created with session id: 2cdaa8f2-16dc-406d-bd8d-81a760089555
[debug] [XCUITest] Xcode version set to '8.0'
[debug] [XCUITest] iOS SDK Version set to '10.0'
[debug] [XCUITest] Available devices: cfc28f7a68b714e7f0e188bbb802e5316b7643cb
[debug] [XCUITest] Creating iDevice object with udid cfc28f7a68b714e7f0e188bbb802e5316b7643cb
[XCUITest] Determining device to run tests on: udid: 'cfc28f7a68b714e7f0e188bbb802e5316b7643cb', real device: true
[BaseDriver] Using local app '/Users/nagarro/Desktop/Melody_app/home-owner-app.app'
[debug] [XCUITest] Checking whether app is actually present
[debug] [ios-app-utils] Getting bundle ID from app
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[XCUITest] Setting up real device
[debug] [XCUITest] Stdout from app isInstalled check: [....] Waiting for iOS device to be connected
[....] Using iPhone 6s 'iPhone 6s' (cfc28f7a68b714e7f0e188bbb802e5316b7643cb).
true

[debug] [XCUITest] App is installed.
[debug] [XCUITest] Full reset not requested. No need to install.
[XCUITest] Using default agent: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[XCUITest] Using default bootstrap: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Beginning test with command '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/bin/run-xcodebuild.sh --project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj --scheme WebDriverAgentRunner --destination id=cfc28f7a68b714e7f0e188bbb802e5316b7643cb' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /var/root/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/34C92D99-1512-489E-8647-22220A2D7560/Session-WebDriverAgentRunner-2016-10-26_135756-gbtV3x.log
[Xcode] 2016-10-26 13:58:00.699 xcodebuild[6745:99493] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /var/root/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/34C92D99-1512-489E-8647-22220A2D7560/Session-WebDriverAgentRunner-2016-10-26_135756-gbtV3x.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /var/root/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/34C92D99-1512-489E-8647-22220A2D7560/Session-WebDriverAgentRunner-2016-10-26_135756-gbtV3x.log}

[Xcode]
Testing failed:
Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor.

[Xcode] Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.0'
** TEST FAILED **

The following build commands failed:
Check dependencies
(1 failure)

[XCUITest] xcodebuild exited with code '65' and signal 'null'
[debug] [XCUITest] xcodebuild failure warrants retry. Retrying...
[XCUITest] Shutting down WebDriverAgent
[XCUITest] System log exited with code 'null'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Beginning test with command '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/bin/run-xcodebuild.sh --project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj --scheme WebDriverAgentRunner --destination id=cfc28f7a68b714e7f0e188bbb802e5316b7643cb' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /var/root/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/5900F295-6525-49A8-9FAB-6D8F213287C6/Session-WebDriverAgentRunner-2016-10-26_135806-V8J7eI.log
[Xcode] 2016-10-26 13:58:10.684 xcodebuild[6982:99893] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /var/root/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/5900F295-6525-49A8-9FAB-6D8F213287C6/Session-WebDriverAgentRunner-2016-10-26_135806-V8J7eI.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /var/root/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/5900F295-6525-49A8-9FAB-6D8F213287C6/Session-WebDriverAgentRunner-2016-10-26_135806-V8J7eI.log}

[Xcode] Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.0'

[Xcode]

[Xcode]
Testing failed:
Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.0'
** TEST FAILED **

The following build commands failed:
Check dependencies
(1 failure)

[XCUITest] xcodebuild exited with code '65' and signal 'null'
[XCUITest] Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:294:25)
at emitTwo (events.js:87:13)
at SubProcess.emit (events.js:172:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess.handle.onexit (internal/childprocess.js:200:12)
[Error: xcodebuild failed with code 65]
[debug] [XCUITest] Running ios real device reset flow
[debug] [XCUITest] Resetting simulator
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:294:25)
at emitTwo (events.js:87:13)
at SubProcess.emit (events.js:172:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess.handle.onexit (internal/childprocess.js:200:12)
[HTTP] <-- POST /wd/hub/session 500 22337 ms - 167

...or years :slight_smile:

Just use the cli version for now if you want the latest build. I've struggled with it myself for a couple of days, now it seems as good as the app.

I really need appium inspector. Unfortunately, it cannot be run via npm package. Waiting for GUI app.

Hi All,

I am trying to install appium verison 1.6.0 using npm command, but i am always getting stuck while application is trying to install 'Chrome-Driver'.
Can someone giude me, why I am getting this issue.

Thanks in advance.

I am getting this err : RequestError: Error: connect ETIMEDOUT 172.26.120.23:80.
I have appended the logs of the installation as well.

appium-chromedriver@2.9.3 install /Users/ideas/node_modules/appium-chromedriver
node install-npm.js

(node:9979) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
info Chromedriver Install Installing Chromedriver version '2.25' for platform 'mac' and architecture '64'
info Chromedriver Install Opening temp file to write chromedriver_mac64 to...
info Chromedriver Install Downloading http://chromedriver.storage.googleapis.com/2.25/chromedriver_mac64.zip3...
RequestError: Error: connect ETIMEDOUT 172.26.120.23:80
at new RequestError (/Users/ideas/node_modules/request-promise/lib/errors.js:11:15)
at Request.RP$callback as _callback
at self.callback (/Users/ideas/node_modules/request/request.js:186:22)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.onRequestError (/Users/ideas/node_modules/request/request.js:824:8)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at Socket.socketErrorListener (httpclient.js:309:9)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at emitErrorNT (net.js:1281:8)
at combinedTickCallback (internal/process/nexttick.js:74:11)
at process.tickCallback (internal/process/nexttick.js:98:9)

appium-chromedriver@2.9.2 install /Users/ideas/node_modules/appium/node_modules/appium-chromedriver
node install-npm.js

(node:9987) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
info Chromedriver Install Installing Chromedriver version '2.21' for platform 'mac' and architecture '32'
info Chromedriver Install Opening temp file to write chromedriver_mac32 to...
info Chromedriver Install Downloading http://chromedriver.storage.googleapis.com/2.21/chromedriver_mac32.zip...
RequestError: Error: connect ETIMEDOUT 172.26.120.23:80
at new RequestError (/Users/ideas/node_modules/appium/node_modules/request-promise/lib/errors.js:11:15)
at Request.RP$callback as _callback
at self.callback (/Users/ideas/node_modules/appium/node_modules/request/request.js:187:22)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.onRequestError (/Users/ideas/node_modules/appium/node_modules/request/request.js:813:8)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at Socket.socketErrorListener (httpclient.js:309:9)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at emitErrorNT (net.js:1281:8)
at combinedTickCallback (internal/process/nexttick.js:74:11)
at process.tickCallback (internal/process/nexttick.js:98:9)
/Users/ideas
└── (empty)

npm WARN enoent ENOENT: no such file or directory, open '/Users/ideas/package.json'
npm WARN ideas No description
npm WARN ideas No repository field.
npm WARN ideas No README data
npm WARN ideas No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: appium-chromedriver@2.9.3 (node_modules/appium-chromedriver):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: appium-chromedriver@2.9.3 install: node install-npm.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/Cellar/node/7.0.0/bin/node" "/usr/local/bin/npm" "install" "appium@1.6.0"
npm ERR! node v7.0.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! appium-chromedriver@2.9.2 install: node install-npm.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the appium-chromedriver@2.9.2 install script 'node install-npm.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the appium-chromedriver package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install-npm.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs appium-chromedriver
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls appium-chromedriver
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/ideas/npm-debug.log
npm ERR! code 1