Command line tool and Xcode make error

Registered users can post general questions here
Forum rules
-Must be questions and discussion related to BSK software
Post Reply
adambsk
Site Admin
Posts: 11
Joined: Mon Jun 11, 2018 4:13 pm

Command line tool and Xcode make error

Post by adambsk » Mon Jun 25, 2018 7:50 pm

While configuring the CMake to generate for xcode, I received the error:

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
BSK CS Engineer

adambsk
Site Admin
Posts: 11
Joined: Mon Jun 11, 2018 4:13 pm

Re: Command line tool and Xcode make error

Post by adambsk » Mon Jun 25, 2018 7:53 pm

This seems to happen when command line tools is installed after xcode. When xcode-select is pointing to the wrong directory this error will appear.

Fix:

Code: Select all

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

Sources:
github issue
stack overflow
BSK CS Engineer

Post Reply