OptionsOn xcodebuild itself
-help
Print complete usage
-verbose
Provide additional status output
-license
Show the Xcode and SDK license agreements
-checkFirstLaunchStatus
Check if any First Launch tasks need to be performed
-runFirstLaunch
Install packages and agree to the license
-project
Build the project NAME <NAME>
-target
Build the target NAME <NAME>
-alltargets
Build all targets
-workspace
Build the workspace NAME <NAME>
-scheme
Build the scheme NAME <NAME>
-configuration
Use the build configuration NAME for building each target <NAME>
-xcconfig
Apply the build settings defined in the file at PATH as overrides <NAME>
-arch
Build each target for the architecture ARCH; this will override architectures defined in the project <ARCH>
-sdk
Use SDK as the name or path of the base SDK when building the project <SDK>
-toolchain
Use the toolchain with identifier or name NAME <NAME>
-destination
Use the destination described by DESTINATIONSPECIFIER (a comma-separated set of key=value pairs describing the destination to use) <DESTINATION SPECIFIER>
-destination-timeout
Wait for TIMEOUT seconds while searching for the destination device <TIMEOUT>
-parallelizeTargets
Build independent targets in parallel
-jobs
Specify the maximum number of concurrent build operations <NUMBER>
-maximum-concurrent-test-device-destinations
The maximum number of device destinations to test on concurrently <NUMBER>
-maximum-concurrent-test-simulator-destinations
The maximum number of simulator destinations to test on concurrently <NUMBER>
-parallel-testing-enabled
Overrides the per-target setting in the scheme <mode>
-parallel-testing-worker-count
The exact number of test runners that will be spawned during parallel testing <NUMBER>
-maximum-parallel-testing-workers
The maximum number of test runners that will be spawned during parallel testing <NUMBER>
-dry-run
Do everything except actually running the commands
-quiet
Do not print any output except for warnings and errors
-hideShellScriptEnvironment
Don't show shell script environment variables in build log
-showsdks
Display a compact list of the installed SDKs
-showdestinations
Display a list of destinations
-showTestPlans
Display a list of test plans
-showBuildSettings
Display a list of build settings and values
-showBuildSettingsForIndex
Display build settings for the index service
-list
Lists the targets and configurations in a project, or the schemes in a workspace
-find-executable
Display the full path to executable NAME in the provided SDK and toolchain <NAME>
-find-library
Display the full path to library NAME in the provided SDK and toolchain <NAME>
-version
Display the version of Xcode; with -sdk will display info about one or all installed SDKs
-enableAddressSanitizer
Turn the address sanitizer on or off <mode>
-enableThreadSanitizer
Turn the thread sanitizer on or off <mode>
-enableUndefinedBehaviorSanitizer
Turn the undefined behavior sanitizer on or off <mode>
-resultBundlePath
Specifies the directory where a result bundle describing what occurred will be placed <PATH>
-resultStreamPath
Specifies the file where a result stream will be written to (the file must already exist) <PATH>
-resultBundleVersion
Specifies which result bundle version should be used <version>
-clonedSourcePackagesDirPath
Specifies the directory to which remote source packages are fetch or expected to be found <PATH>
-derivedDataPath
Specifies the directory where build products and other derived data will go <PATH>
-archivePath
Specifies the directory where any created archives will be placed, or the archive that should be exported <PATH>
-exportArchive
Specifies that an archive should be exported
-exportNotarizedApp
Export an archive that has been notarized by Apple
-exportOptionsPlist
Specifies a path to a plist file that configures archive exporting <PATH>
-enableCodeCoverage
Turn code coverage on or off when testing <mode>
-exportPath
Specifies the destination for the product exported from an archive <PATH>
-skipUnavailableActions
Specifies that scheme actions that cannot be performed should be skipped instead of causing a failure
-exportLocalizations
Exports completed and outstanding project localizations
-importLocalizations
Imports localizations for a project, assuming any necessary localized resources have been created in Xcode
-localizationPath
Specifies a path to XLIFF localization file <PATH>
-exportLanguage
Specifies multiple optional ISO 639-1 languages included in a localization export <languages>
-xcroot
Specifies a path to a .xcroot to use for building and/or testing <path>
-xctestrun
Specifies a path to a test run specification <path>
-testPlan
Specifies the name of the test plan associated with the scheme to use for testing <test plan>
-only-testing
Constrains testing by specifying tests to include, and excluding other tests
-only-testing:
Constrains testing by specifying tests to include, and excluding other tests <Test Identifier>
-skip-testing
Constrains testing by specifying tests to exclude, but including other tests
-skip-testing:
Constrains testing by specifying tests to exclude, but including other tests <Test Identifier>
-test-timeouts-enabled
Enable or disable test timeout behavior <mode>
-default-test-execution-time-allowance
The default execution time an individual test is given to execute, if test timeouts are enabled <SECONDS>
-maximum-test-execution-time-allowance
The maximum execution time an individual test is given to execute, regardless of the test's preferred allowance <SECONDS>
-only-test-configuration
Constrains testing by specifying test configurations to include, and excluding other test configurations
-skip-test-configuration
Constrains testing by specifying test configurations to exclude, but including other test configurations
-testLanguage
Constrains testing by specifying ISO 639-1 language in which to run the tests
-testRegion
Constrains testing by specifying ISO 3166-1 region in which to run the tests
-resolvePackageDependencies
Resolves any Swift package dependencies referenced by the project or workspace
-disableAutomaticPackageResolution
Prevents packages from automatically being resolved to versions other than those recorded in the `Package.resolved` file
-allowProvisioningUpdates
Allow xcodebuild to communicate with the Apple Developer website. For automatically signed targets, xcodebuild will create and update profiles, app IDs, and certificates. For manually signed targets, xcodebuild will download missing or updated provisioning profiles. Requires a developer account to have been added in Xcode's Accounts preference pane
-allowProvisioningDeviceRegistration
Allow xcodebuild to register your destination device on the developer portal if necessary. This flag only takes effect if -allowProvisioningUpdates is also passed
-scmProvider
Which implementation to use for Git operations (system/xcode) <Implementation>
-showBuildTimingSummary
Display a report of the timings of all the commands invoked during the build
-create-xcframework
Create an xcframework from prebuilt libraries; -help for more information
build
Build the target in the build root (SYMROOT). This is the default build action
installsrc
Copy the source of the project to the source root (SRCROOT)
install
Build the target and install it into the target's installation directory in the distribution root (DSTROOT)
clean
Remove build products and intermediate files from the build root (SYMROOT)