Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save erneestoc/7624f5b517915b229dc867c87aad0406 to your computer and use it in GitHub Desktop.

Select an option

Save erneestoc/7624f5b517915b229dc867c87aad0406 to your computer and use it in GitHub Desktop.
Xcode new build system debugging tricks

New Build System Tricks

Command Line

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

IDE Console

writePIF <workspace name> <path>
showStatistics
clearAllCaches
setConfig EnableBuildDebugging true
	# … then save DerivedData & build log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment