How do I use Buildwatch with xcodebuild on the command line?

By default, Buildwatch monitors builds made in the Xcode user interface, but some developers prefer to use xcodebuild from the command line. To set up Buildwatch to monitor these builds, follow these instructions:

Specify both a resultBundlePath and a derivedDataPath in your invocation of xcodebuild.

  • The resultBundlePath may be any path on your system.
  • The derivedDataPath must be a subdirectory of your DerivedData folder that Buildwatch has been given access to in Settings.

Example xcodebuild command:

xcodebuild -project ./AppName.xcodeproj -scheme AppName -resultBundlePath ~/Desktop -derivedDataPath ~/Library/Developer/Xcode/DerivedData/AppName -destination 'platform=iOS Simulator,name=iPhone 6s,OS=13.3'