[Appium 1.3.5 - iOS] - Could not start with Safari browser in iOS 8.1 Simulator. Error: BadStatusLine:''

Hello Appium Users !
I’m using appium 1.3.5 app with python-appium client. Xcode 6.
I’m trying to run sim and install my app via Safari browser - standard smoke test
I enabled Safari Web Inspector in sim settings - but it still crashing after while.

My desired caps are:

from appium import webdriver

desired_caps = {
    'platformName': 'iOS',
    'platformVersion': '8.1',
    'deviceName': 'iPad 2',
    'browserName': 'Safari',

}

driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)

After launching above code, Sim starts working, it opens Safari browser and after some time i’t crashes with Python console output (i attached only last line):

 status, reason = self._read_status()
 File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 321, in _read_status
raise BadStatusLine(line)
http.client.BadStatusLine: ''

Appium app console output(should i attached whole content?):

error: Could not find button to click to get into webview. Proceeding on the assumption we have a working one.

Am I miss someting? Did someone have already same issue? Can somebody give me some clue? Thanks in advance.

Mike

I am running into same issue with Appium 1.3.7 in Safari.

I meet the same problem when I run the scripts after updating xcode to 8.1 and appium to 1.6.0. My scripts which run smothly in appium1.5.3 are as follows:

def openApplication(self,time):
desired_caps = {}
desired_caps[‘automationName’] = ‘XCUITest’
desired_caps[‘appium-version’] = ‘1.6.0’
desired_caps[‘platformName’] = ‘iOS’
desired_caps[‘platformVersion’] = ‘10.1’
desired_caps[‘deviceName’] = ‘iPhone SE’
desired_caps[‘app’] = os.path.abspath(’/Users/wanwan/Desktop/campus.app’)
self.driver=webdriver.Remote(‘http://0.0.0.0:4723/wd/hub’,desired_caps)
sleep(3)

To the sentence: self.driver=webdriver.Remote(‘http://0.0.0.0:4723/wd/hub’,desired_caps),
the logs are:
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py”, line 417, in _read_status
raise BadStatusLine(line)
BadStatusLine: ‘’

Have someone encountered the same problem before? Can someone give me some advices? Thinks in advance.