Author Topic: OS 10.9.5 Can't Build  (Read 2648 times)

Offline truegold

  • Single posting newcomer
  • *
  • Posts: 2
OS 10.9.5 Can't Build
« on: September 21, 2015, 06:52:33 pm »
Hi All,

New to building/compiling. XCode 6.2 installed. CommandLineTools installed (Library->Developer...)

Created a simple "Hello World" project, immediately selected Build and...


-------------- Build: Debug in test (compiler: GNU GCC Compiler)---------------

g++ -Wall -fexceptions -g -std=c++0x  -c /Users/JJF/Documents/CodeBlocks_/test/main.cpp -o obj/Debug/main.o
xcrun: error: active developer path ("/Volumes/HD-iMac_1TB/Macintosh HD/Applications/Xcode.app/Contents/Developer") does not exist, use xcode-select to change

Looks like it's pointing to a directory that's on a portable drive. Didn;t realize xCode was not installed locally when I installed CodeBlocks.

Where is the "active developer path" set? HOW do I set this path correctly? I can't find it???

Thanks,
John...

Offline truegold

  • Single posting newcomer
  • *
  • Posts: 2
Re: OS 10.9.5 Can't Build
« Reply #1 on: September 22, 2015, 02:19:27 am »
Hi All,

for those who run into this in the future. I found a link to reset the active developer using this command line in Terminal:

sudo xcode-select -switch /Applications/Xcode.app

Type in your password and then restart CodeBlocks.

I think it worked although I didn't see anything.

So...

Thanks,
John...