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

xctool — Build Xcode projects. More information: <https://github.com/facebookarchive/xctool#usage>.

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

Problem

How to use the xctool command: Build Xcode projects. More information: <https://github.com/facebookarchive/xctool#usage>.

Solution

xctool — Build Xcode projects. More information: <https://github.com/facebookarchive/xctool#usage>.

Build a single project without any workspace:
xctool -project {{YourProject.xcodeproj}} -scheme {{YourScheme}} build


Build a project that is part of a workspace:
xctool -workspace {{YourWorkspace.xcworkspace}} -scheme {{YourScheme}} build


Clean, build, and execute all the tests:
xctool -workspace {{YourWorkspace.xcworkspace}} -scheme {{YourScheme}} clean build test

Code Snippets

Build a single project without any workspace

xctool -project {{YourProject.xcodeproj}} -scheme {{YourScheme}} build

Build a project that is part of a workspace

xctool -workspace {{YourWorkspace.xcworkspace}} -scheme {{YourScheme}} build

Clean, build, and execute all the tests

xctool -workspace {{YourWorkspace.xcworkspace}} -scheme {{YourScheme}} clean build test

Context

tldr-pages: osx/xctool

Revisions (0)

No revisions yet.