Update Xcode after using git error:
tothe Xcode/iOS license requires admin privileges, please re-runas root via sudo.
Workaround:
First step: Enter the following command
bixiaopeng@bixiaopengtekiMacBook-ProSecondApp$ sudo xcodebuild -licensePassword:
Step two: agree to Xcode terms
After entering your password, you must agree to the following two Xcode terms.
nottothetointothetotheat‘/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf‘
Follow the prompts to click the ENTER key to view the terms.
Pple Inc.xcode andApple SDKs agreementplease SCROLL down and READAll ofThe following TERMS andCONDITIONS carefully beforeUSINGThe APPLE SoftwareORAPPLE SERVICES. This isA LEGAL agreement between you andAPPLE.IFYou AGREE toBe BOUND byAll ofThe TERMS andCONDITIONS, click the "AGREE" button. byClicking "AGREE"OR byDownloading,USING ORCOPYING any part ofThis APPLE softwareOR USINGAny part ofThe APPLE SERVICES, you are agreeing onYOUR OW ... Balabala a whole bunch of ... byTyping' Agree 'You are agreeing toThe terms ofThe software license agreements.Type ' print ' toPrint themorAnythingElse toCancel, [Agree, print, cancel]
Click the space to see the last, enter agree to agree to the terms.
theinorat /Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf
Then you can use git normally.
[email protected]-Pro SecondApp$ git pullAlready up-to-date.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Fix an issue with git error after updating Xcode