我正在chromedriver
通过brew cask install
(请参阅相关问题)下载,当我尝试下载它时,我收到以下错误(粘贴了命令条目的完整输出):
(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 无头,但这仍然无法解决上述问题。