# SourceTreeを開くと「’git status’ failed with code 69:’」というポップアップが出てくる場合の解決方法 URL: https://webrandum.net/git-status-failed-with-code-69/ 公開日: 2019-10-02 更新日: 2019-10-01 カテゴリー: コーディング タグ: Git, SourceTree 出典: Webrandum(著者: サイトウ マサカズ) 最近SourceTreeを開くと、`'git status' failed with code 69:'`というエラーが出てきました。 ``` 'git status' failed with code 69:' Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license” and then retry this command. ' ``` ![](https://webrandum.net/mskz/wp-content/uploads/2019/10/image_1-1.png) エラーメッセージを直訳すると「Xcode / iOSライセンスに同意するには管理者権限が必要です。`sudo xcodebuild -license`を実行してから、このコマンドを再試行してください。」となります。 Xcodeのライセンスに同意する必要があるので、メッセージに従って下記のコマンドをターミナルで実行します。 ``` sudo xcodebuild -license ``` パスワードが求められるので、Macログイン時のパスワードを入力します(画面上には表示されませんが入力はちゃんと受け付けられています)。 パスワードを入力してenterを押すと、下記のような画面が表示されます。 ![](https://webrandum.net/mskz/wp-content/uploads/2019/10/image_2-1.png) この状態で再度enterを押すとライセンスの内容が表示されます。 内容を確認したらqキーで終了。 ``` 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`と入力してenterします。 - 同意:agree - 印刷:print - キャンセル:cancel 下記のテキストが表示されたら同意完了なので、改めてSourceTreeを開くとダイアログが表示されなくなっているはずです。 ``` You can view the license agreements in Xcode's About Box, or at /Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf ```