I am using Snow Leopard + Xcode, and xcodebuild and xcrun are present in /usr/bin . Regardless, they should be present in /Developer/usr/bin - you just need to make sure the path is in your $PATH variable. You can install it in your shell configuration file ( ~/.bashrc for bash ) as follows:
export PATH="/Developer/usr/bin:${PATH}"
Regarding the difference between sh and bash , bash supports some extensions and other functions not found in the more primitive sh ; however, on Mac OS X, sh and bash are the same program (this is typical of many Unix and Linux systems at present). However, when bash is invoked as sh (that is, you invoke /bin/sh from the command line and not /bin/bash ), bash will try to act as a more "traditional" sh program.
source share