Xcode Build & Archive From Command Line

Download ios eBook


  • xcodebuild [-project name.xcodeproj] -scheme schemename [[-destination destinationspecifier] ...] [-destination-timeout value] [-configuration configurationname] [-sdk [sdkfullpath | sdkname]] [action ...] [buildsetting=value ...] [-userdefault=value ...]


-projectBuild the project name.xcodeproj.
-schemeRequired if building a workspace.
-destinationUse the destination device
-configurationUse the build configuration
-sdkspecified 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.

Related Examples


1338 Contributors: 2
Friday, March 31, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook