Mac git xcrun error active developer path Error

Source: Internet
Author: User

I. Scenario:

Command Line tools must be installed when git is used in MAC and xcode4.6 environments. However, after xcode5 is installed, command line tools does not need to be installed. By default, command line tools has been integrated; however, I installed xcode4.6 first, and later installed xcode5, that is, when I installed two versions of xocde on Mac but used git on the terminal, the following error occurs:

Ii. Error

Xcrun: Error: Active developer path ("/users/Apple/desktop/xcode5.app/contents/developer") does not exist, use xcode-select to change

Iii. solution:

Under the terminal:

Sudo xcode-select-switch/applications/xcode5.app/contents/Developer

Note: The above xcode5.app is based on the situation, because after my xcode is installed, the name is changed to xcode5. So here, xcodee5.app, if you do not have a license, is xcode. App.

Mac git xcrun error active developer path Error

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.