Xcodebuild
The xcodebuild command is used to build XCode
projects. It provides a convenient way to execute xcodebuild, as well as applying a xcodebuild post-processor to the command output by default.
The xcodebuild command is based on the executable command, thus all attributes and child elements valid for the executable command are also valid for the xcodebuild command.
Attributes
| Attribute |
Description |
Required? |
Default |
| project |
Build the specified project. This is the same as the xcodebuild -project command line option. |
No |
|
| config |
Use the specified build configuration when building the target. This is the same as the xcodebuild -configuration command line option. |
No |
|
| target |
Build the specified target. This is the same as the xcodebuild -target command line option. |
No |
|
| buildaction |
Specify a build action (or actions) to perform on the target. |
No |
|
| settings |
Specify a space separated list of setting=value pairs that represent build settings and values. |
No |
|
See also executable.
Child Elements
See executable.
Examples
Execute the Release configuration for projectA:
<xcodebuild name="build" config="Release" project="projectA.xcodeproj"/>
Reference:
Manpage xcodebuild