Unable to launch WebDriverAgent because of xcodebuild failure: Command 'Scripts/bootstrap.sh -d' exited with code 1 after upgrade to the last version of Appium

System. MAC OS 10.13.6
Appium. 1.13.0

after upgrade the Appium, when try to start the session to launch the app in iOS simulator. below error happened.

[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: ‘/usr/local/bin/carthage’
[XCUITest] Running WebDriverAgent bootstrap script to install dependencies
[XCUITest] Fetching dependencies
[XCUITest] Usage: simctl list [-j | --json] [devices|devicetypes|runtimes|pairs]
[XCUITest] Error processing line 1 of /usr/local/lib/python2.7/site-packages/wxredirect.pth:
[XCUITest] Error processing line 1 of /usr/local/lib/python2.7/site-packages/wxredirect.pth:
[XCUITest] Traceback (most recent call last):
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py”, line 152, in addpackage
[XCUITest] exec line
*[XCUITest] File “”, line 1, in *
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py”, line 190, in addsitedir
[XCUITest] addpackage(sitedir, name, known_paths)
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py”, line 162, in addpackage
*[XCUITest] for record in traceback.format_exception(sys.exc_info()):
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/traceback.py”, line 141, in format_exception
[XCUITest] list = list + format_tb(tb, limit)
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/traceback.py”, line 76, in format_tb
[XCUITest] return format_list(extract_tb(tb, limit))
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/traceback.py”, line 101, in extract_tb
[XCUITest] line = linecache.getline(filename, lineno, f.f_globals)
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/linecache.py”, line 14, in getline
[XCUITest] lines = getlines(filename, module_globals)
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/linecache.py”, line 41, in getlines
[XCUITest] return updatecache(filename, module_globals)
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/linecache.py”, line 131, in updatecache
[XCUITest] with open(fullname, ‘rU’) as fp:
[XCUITest] RuntimeError: maximum recursion depth exceeded
[XCUITest] Remainder of file ignored
[XCUITest] Traceback (most recent call last):
*[XCUITest] File “”, line 1, in *
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py”, line 291, in load
*[XCUITest] *kw)
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py”, line 339, in loads
[XCUITest] return _default_decoder.decode(s)
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py”, line 364, in decode
[XCUITest] obj, end = self.raw_decode(s, idx=_w(s, 0).end())
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py”, line 382, in raw_decode
[XCUITest] raise ValueError(“No JSON object could be decoded”)
[XCUITest] ValueError: No JSON object could be decoded
[BaseDriver] Event ‘wdaStartFailed’ logged at 1558173026615 (17:50:26 GMT+0800 (CST))
[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘Scripts/bootstrap.sh -d’ exited with code 1
[XCUITest] Quitting and uninstalling WebDriverAgent
[XCUITest] Shutting down sub-processes
[XCUITest] Removing WDA application from device
[BaseDriver] Event ‘wdaStartAttempted’ logged at 1558173037718 (17:50:37 GMT+0800 (CST))
[XCUITest] Retrying WDA startup (2 of 2)
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: ‘/usr/local/bin/carthage’
[XCUITest] Running WebDriverAgent bootstrap script to install dependencies
[XCUITest] Fetching dependencies
[XCUITest] Usage: simctl list [-j | --json] [devices|devicetypes|runtimes|pairs]
[XCUITest] Error processing line 1 of /usr/local/lib/python2.7/site-packages/wxredirect.pth:
[XCUITest] Error processing line 1 of /usr/local/lib/python2.7/site-packages/wxredirect.pth:
[XCUITest] Traceback (most recent call last):
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py”, line 152, in addpackage
[XCUITest] exec line
*[XCUITest] File “”, line 1, in *
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py”, line 190, in addsitedir
[XCUITest] addpackage(sitedir, name, known_paths)
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py”, line 162, in addpackage
*[XCUITest] for record in traceback.format_exception(sys.exc_info()):
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/traceback.py”, line 141, in format_exception
[XCUITest] list = list + format_tb(tb, limit)
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/traceback.py”, line 76, in format_tb
[XCUITest] return format_list(extract_tb(tb, limit))
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/traceback.py”, line 101, in extract_tb
[XCUITest] line = linecache.getline(filename, lineno, f.f_globals)
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/linecache.py”, line 14, in getline
[XCUITest] lines = getlines(filename, module_globals)
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/linecache.py”, line 41, in getlines
[XCUITest] return updatecache(filename, module_globals)
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/linecache.py”, line 131, in updatecache
[XCUITest] with open(fullname, ‘rU’) as fp:
[XCUITest] RuntimeError: maximum recursion depth exceeded
[XCUITest] Remainder of file ignored
[XCUITest] Traceback (most recent call last):
*[XCUITest] File “”, line 1, in *
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py”, line 291, in load
*[XCUITest] *kw)
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py”, line 339, in loads
[XCUITest] return _default_decoder.decode(s)
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py”, line 364, in decode
[XCUITest] obj, end = self.raw_decode(s, idx=_w(s, 0).end())
[XCUITest] File “/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py”, line 382, in raw_decode
[XCUITest] raise ValueError(“No JSON object could be decoded”)
[XCUITest] ValueError: No JSON object could be decoded
[BaseDriver] Event ‘wdaStartFailed’ logged at 1558173037876 (17:50:37 GMT+0800 (CST))
[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘Scripts/bootstrap.sh -d’ exited with code 1

Appreciate if anyone can help on this.

Could you try out appium@beta?
Maybe it is https://github.com/appium/appium/issues/12586

Appium 1.13.0 is not Verified version. Use 1.12.0 or 1.12.1 Appium

Thanks, I’ve tried beta and it works OK. thanks a lot. but in case encounter other unexpected issue, I’m using 1.12.1 for now.

Tried 1.12.1, and it works OK now. thanks a lot.

1 Like

mm, it is appreciate if you create an issue on appium repository about the issue to fix it if it is appium side issue. thanks

Look on requirement for new appium 1.13.0 - https://github.com/appium/appium/releases
You have to update Carthage. Recommended version of Carthage for appium 1.13.0 is 0.33.0