【发布时间】:2019-02-08 02:20:38
【问题描述】:
我正在通过brew cask install(参见related issue)下载chromedriver,当我尝试下载它时出现以下错误(粘贴了命令条目的完整输出):
(env) MacBook:project_dir owner$ brew cask install chromedriver
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
dnstwist grpc pdns uftp
firebase-cli lf pdnsrec wildfly-as
glslviewer libxlsxwriter tile38 zabbix
==> Satisfying dependencies
==> Downloading https://chromedriver.storage.googleapis.com/2.41/chromedriver_ma
######################################################################## 100.0%
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:29:30: error: 'quarantinePropertiesKey' is only available on OS X 10.10 or newer
forKey: URLResourceKey.quarantinePropertiesKey
^
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:29:30: note: add 'if #available' version check
forKey: URLResourceKey.quarantinePropertiesKey
^
Error: Failed to quarantine /Users/user/Library/Caches/Homebrew/downloads/42621d77ecaa889fa8ca73ac4b2a2228e3c1d11f20d84c6898e7645397d00f1d--chromedriver_mac64.zip. Here's the reason:
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:29:30: error: 'quarantinePropertiesKey' is only available on OS X 10.10 or newer
forKey: URLResourceKey.quarantinePropertiesKey
^
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:29:30: note: add 'if #available' version check
forKey: URLResourceKey.quarantinePropertiesKey
以前有人遇到过这个问题吗?任何帮助,将不胜感激。我正在尝试设置无头 chrome 驱动程序但失败了。
UPDATE_EDIT:我已经从 Chrome 移出,并且使用 Firefox 无头浏览器获得了更多的运气,但这仍然无法解决上述问题。
【问题讨论】:
标签: selenium-chromedriver homebrew homebrew-cask