and edit in Build Settings editor in IDE •Override by passing on xcodebuild command line •Set in environment to provide defaults •Use -showBuildSettings option to xcodebuild
▪ Context-sensitive—depends on SDK, etc. ▪ Also searches standard $PATH as a fallback •Mode 1: Print the path of the tool ▪ Usage: xcrun -find tool •Mode 2: Run the tool with a full command line
▪ Context-sensitive—depends on SDK, etc. ▪ Also searches standard $PATH as a fallback •Mode 1: Print the path of the tool ▪ Usage: xcrun -find tool •Mode 2: Run the tool with a full command line ▪ Usage: xcrun tool arg1 arg2 ...
and Xcode WWDC Preview tools ▪ Code shared between two products (e.g. OS X and iOS) ▪ Disruptive to switch between tools constantly •Solution ▪ Use xcodebuild and Continuous Integration
the Xcode tools you want are used, regardless of the tools currently chosen by xcode-select •Use appropriate options to set the workspace, scheme, SDK •Use build settings to control where output files go
the Xcode tools you want are used, regardless of the tools currently chosen by xcode-select •Use appropriate options to set the workspace, scheme, SDK •Use build settings to control where output files go DSTROOT, OBJROOT, SYMROOT, SHARED_PRECOMPS_DIR
who has accepted the license agreement; alternately, can accept for all users sudo xcodebuild -license •Ensure access to appropriate development certificates
projects ▪ Legacy code base ▪ Traditional UNIX development ▪ Cross-platform open source projects •Tools for working outside Xcode ▪ Understanding the command line tools package
to get svn or git ▪ Instead, use xcrun and shell aliases •Do not install unless you need them ▪ Only one instance of command line tools ▪ Install is distinct from Xcode
to get svn or git ▪ Instead, use xcrun and shell aliases •Do not install unless you need them ▪ Only one instance of command line tools ▪ Install is distinct from Xcode ▪ Requires manual effort to keep up-to-date with new releases
man Choose the default Xcode.app to use Build, archive, and query Xcode projects and workspaces Find and execute command line tools that are inside Xcode Access to command line documentation
<name> -sdk <name> -showsdks -list -showBuildSettings NAME=VALUE Select a project or workspace to operate on Select a scheme to use Select an SDK to use List available SDKs List schemes or targets for active project or workspace List active build settings and their values Override a build setting with a particular value
Build Setting Reference http://developer.apple.com man Pages http://developer.apple.com (or man <toolname> on the command line) Apple Developer Forums http://devforums.apple.com
the command •Use xcodebuild to script and automate builds ▪ Use build settings and schemes to customize to your project •Consider using continuous integration to improve development
the command •Use xcodebuild to script and automate builds ▪ Use build settings and schemes to customize to your project •Consider using continuous integration to improve development •Use the Command Line Tools package when working outside Xcode