Sid
Sid

Reputation: 21

sudo xcode select switch command not working

sudo xcode-select -switch /Applications/Xcode.app command not working, I have a OS Sierra and Xcode 8 installed. I either get no reply and command moves to next line or i get an error. Please Help i want to change directory

Upvotes: 2

Views: 3742

Answers (2)

JohnQ
JohnQ

Reputation: 714

Check your setting for DEVELOPER_DIR environment variable. You may be over-riding it. Find out with:

echo $DEVELOPER_DIR

In your ~/.bash_profile add:

export DEVELOPER_DIR=/Applications/Xcode.app

Found the answer in https://forums.developer.apple.com/thread/13629

Upvotes: 1

Jens Meder
Jens Meder

Reputation: 4367

You need to run xcode-select as root. Therefore, simply execute the following command in Terminal:

sudo xcode-select -s "/Applications/Xcode.app"

Upvotes: 1

Related Questions