更新 xcode 在 mac 上安装 gnuplot 的错误

update your xcode error for installing gnuplot on mac

尝试在终端上使用此命令安装 gnuplot

Mac:~ Amar$ brew install gnuplot --with-xll
Error: Your Xcode (7.3.1) is too outdated.
Please update to Xcode 8.2 (or delete it).
Xcode can be updated from the App Store

但是,当检查 xcode 是否需要更新时,我会关注

Mac:~ Amar$ softwareupdate --install xcode
Software Update Tool
Copyright 2002-2015 Apple Inc.

xcode: No such update
No updates are available.

请告诉我如何解决这个问题。

此错误已通过卸载 Xcode 并从 Apple 的开发者帐户重新安装来解决。

xcode 不是 softwareupdate 的有效参数。您需要先使用 softwareupdate --list 获取可用更新列表;然后使用 softwareupdate --install 后跟更新名称。