Rust build でエラー

たいしたことない話だけれども念のためメモしておく。

今まで特に問題の無かったコードで、cargo run 実行したら大量のエラー(トレース)とともに下記のようなメッセージが出てきた。

You have not agreed to the Xcode license agreements, please run 'sudo xcodebuild -license' from within a Terminal window to review and agree to the Xcode license agreements.

言われた通りやってみた。

=>  sudo xcodebuild -license
Password:

You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.

Press the 'return' key to view the license agreements at '/Applications/Xcode.app/Contents/Resources/en.lproj/License.rtf'

...
中略
...

By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to print them or anything else to cancel, [agree, print, cancel]

これまた言われたとおり、agree してみた。
そして、再度 cargo run を実行してみると、今度はこんなのが出た。

Please ensure Xcode packages are up-to-date — try running 'xcodebuild -runFirstLaunch'.

なので、xcodebuild -runFirstLaunch を実行。

これで cargo run がまた動くようになった。

そういえば、たしかに昨日 Xcode のバージョンアップを行ったかも(/_\*)

コメント

タイトルとURLをコピーしました