Mac git xcrun error active developer path Error _swift

Source: Internet
Author: User

One: Scenario:

You need to install command line tools when using a git;xcode4.6 environment under a Mac, but after installing XCODE5, you don't need to install command line tools, which are already integrated by default; But I did it first. xcode4.6 later installed XCODE5 that is, I have two versions of XOCDE installed on my Mac, but when I use git under the terminal, the following error occurs:

Two: Wrong

Xcrun:error:active developer Path ("/users/apple/desktop/xcode5.app/contents/developer") does not exist, use Xcode-select to change

Three: the solution:

Under the terminal:

sudo xcode-select-switch/applications/xcode5.app/contents/developer

Note: The above Xcode5.app according to the situation, because my xcode after the installation, changed the name is XCODE5 so here is, xcodee5.app if you do not forth, is Xcode.app

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.