Installing Xcode command line tools
Older versions of Xcode do not automatically include Xcode command line tools, which are necessary for the branding/signing script to run. You can install command line tools from Xcode (Xcode >Preferences > Downloads). For more information, see Technical Note TN2339 Building from the Command Line with Xcode FAQ.