色々と出力されてエラーで終了しますが、よく見ると以下のように書いてあるのでxcodeを起動してライセンスに同意するとインストールできるようになります。
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
More than 5 years have passed since last update.
色々と出力されてエラーで終了しますが、よく見ると以下のように書いてあるのでxcodeを起動してライセンスに同意するとインストールできるようになります。
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
Register as a new user and use Qiita more conveniently