Hi Guys,
Ive gone through the forums where there seem to be a few discussions regarding issues with ideviceinstaller not being setup properly on the target machine.
We seem to be having a slightly different issue I believe and it may have something to do with the syntax of the command the appium 1.5 is calling.
We upgraded to 1.5 from 1.4.16 today and saw the following error:
2016-02-29 11:33:53,710 ERROR testrunner File “/usr/local/lib/python2.7/dist-packages/appium/webdriver/webdriver.py”, line 37, in init
2016-02-29 11:33:53,711 ERROR testrunner super(WebDriver, self).init(command_executor, desired_capabilities, browser_profile, proxy, keep_alive)
2016-02-29 11:33:53,711 ERROR testrunner File “/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py”, line 87, in init
2016-02-29 11:33:53,711 ERROR testrunner self.start_session(desired_capabilities, browser_profile)
2016-02-29 11:33:53,711 ERROR testrunner File “/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py”, line 141, in start_session
2016-02-29 11:33:53,711 ERROR testrunner ‘desiredCapabilities’: desired_capabilities,
2016-02-29 11:33:53,711 ERROR testrunner File “/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py”, line 201, in execute
2016-02-29 11:33:53,711 ERROR testrunner self.error_handler.check_response(response)
2016-02-29 11:33:53,711 ERROR testrunner File “/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py”, line 181, in check_response
2016-02-29 11:33:53,711 ERROR testrunner raise exception_class(message, screen, stacktrace)
2016-02-29 11:33:53,711 ERROR testrunner WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Command failed: /bin/sh -c ideviceinstaller -u 3BC6011A-6455-443C-80F0-E6302726F721 -l
Looking into the appium logs we see this:
2016-02-29 11:34:07:649 - [debug] [iOS] Running ios real device reset flow
2016-02-29 11:34:07:651 - [debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
2016-02-29 11:34:07:661 - [debug] [iOSLog] Found idevicesyslog: ‘/usr/local/bin/idevicesyslog’
2016-02-29 11:34:07:673 - [debug] [iOS] Creating iDevice object with udid 3BC6011A-6455-443C-80F0-E6302726F721
2016-02-29 11:34:07:686 - [MJSONWP] Encountered internal error running command: Error: Command failed: /bin/sh -c ideviceinstaller -u 3BC6011A-6455-443C-80F0-E6302726F721 -l
at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket.<anonymous> (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)
2016-02-29 11:34:07:693 - [HTTP] <-- POST /wd/hub/session 500 107 ms - 226
It seems that when appium calls the ideviceinstaller command with ‘-l’ it doesnt seem to like it. A bit of background first, we programmatically load our iOS app onto the simulator first using our framework and then instantiate webdriver with the following desired caps:
"platformName" : "iOS",
"deviceName" : self.device["gadget_name"],
"udid" : self.device["udid"],
"platformVersion" : self.device["platformVersion"],
"autoAcceptAlerts" : 'true',
"bundleId" : "com.acano.Acano2",
"showIOSLog" : 'true',
Can anyone please help us with this issue? ideviceinstaller help says that -l, --list-apps List apps, possible options. Not sure why 1.5 is suddenly calling this now and we never saw this with 1.4.x before
Thanks,
Sagar Basutkar