HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

xcodebuild — Build Xcode projects. More information: <https://developer.apple.com/library/archive/technotes/tn233

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandbuildxcodebuildcliprojectsinformationxcodemore
macos

Problem

How to use the xcodebuild command: Build Xcode projects. More information: <https://developer.apple.com/library/archive/technotes/tn2339/_index.html>.

Solution

xcodebuild — Build Xcode projects. More information: <https://developer.apple.com/library/archive/technotes/tn2339/_index.html>.

Build workspace:
xcodebuild -workspace {{workspace_name.workspace}} -scheme {{scheme_name}} -configuration {{configuration_name}} clean build SYMROOT={{SYMROOT_path}}


Build project:
xcodebuild -target {{target_name}} -configuration {{configuration_name}} clean build SYMROOT={{SYMROOT_path}}


Show SDKs:
xcodebuild -showsdks

Code Snippets

Build workspace

xcodebuild -workspace {{workspace_name.workspace}} -scheme {{scheme_name}} -configuration {{configuration_name}} clean build SYMROOT={{SYMROOT_path}}

Build project

xcodebuild -target {{target_name}} -configuration {{configuration_name}} clean build SYMROOT={{SYMROOT_path}}

Show SDKs

xcodebuild -showsdks

Context

tldr-pages: osx/xcodebuild

Revisions (0)

No revisions yet.