Compiling obj-c samples with clang

Is there a walkthrough or can someone provide me with instructions on how to compile the Mac OS developer samples with clang via xcodebuild? CC=ccc xcodebuild doesn't seem to work, at least not for the Sketch sample that people seem to be using as an example on the clang website.

Thanks,
John

clang/ccc does not support precompiled header.

And then, depending your PATH settings, Xcode may not know where ccc is. So I'm doing this to lanch the compilation:

xcodebuild CC=`which ccc` GCC_PRECOMPILE_PREFIX_HEADER=NO