xcodebuild [-project name.xcodeproj] -scheme schemename [[-destination destinationspecifier] ...] [-destination-timeout value] [-configuration configurationname] [-sdk [sdkfullpath | sdkname]] [action ...] [buildsetting=value ...] [-userdefault=value ...]
Option | Description |
---|---|
-project | Build the project name.xcodeproj. |
-scheme | Required if building a workspace. |
-destination | Use the destination device |
-configuration | Use the build configuration |
-sdk | specified SDK |
Run xcodebuild
from the directory containing your project to build an Xcode project. To build an Xcode workspace, you must pass both the -workspace and -scheme options to define the build. The parameters of the scheme will
control which targets are built and how they are built, although you may
pass other options to xcodebuild to override some parameters of the
scheme.