Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Xcode new build system debugging tricks

New Build System Tricks

Command Line

# enable internal menu
defaults write ShowDVTDebugMenu -book YES

alias xcbuild=$(xcode-select -p)/../SharedFrameworks/XCBuild.framework/Versions/A/Support/xcbuild
# THIS DOESNT WORK YET: xcbuild openIDEConsole  # … then switch to Xcode ➡️
xcbuild showSpecs
xcbuild build <foo.pif> [—target <target>]

IDE Console

open with Internal > XCBuild Console

writePIF <workspace name> <path>
        # … you can use this with the `xcbuild build …` command to build via the service directly
setConfig EnableBuildDebugging true
	# … then save DerivedData & build log

This comment has been minimized.

Copy link

mayoff commented Feb 27, 2020

-book YES should be -bool YES.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.