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

更新在mac上安装gnuplot时的xcode错误,xcode,gnuplot,homebrew,Xcode,Gnuplot,Homebrew,尝试在终端上使用此命令安装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 --in

尝试在终端上使用此命令安装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
,后跟更新名称。

谢谢您的回复。。我先做了
softwareupdate--list
,但是这个问题通过卸载Xcode并从苹果的开发者帐户重新安装得以解决。