Fix an issue with git error after updating Xcode

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.