macbook更新後 git報錯 Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudogit
解決方法:xcode
一、在終端下輸入 sudo xcodebuild -licenseapp
出現 You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.
Hit the Enter key to view the license agreements at '/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf'
ui
二、點擊回車code
出現 Apple Inc.
Xcode and Apple SDKs Agreement ...macbook
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]it
三、點擊空格鍵,直到把內容看完。io
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]require
四、輸入agree 回車。終端
出現 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
You can view the license agreements in Xcode's About Box, or at /Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf
恭喜你,完美解決。