Options.inc file not found when integrating Xcode with Ninja

Hey everyone!

I'm following the Getting Started Guide to get setup in Xcode. I've completed the Using Ninja with Xcode steps. When I run I get the following error: 'clang/Driver/Options.inc' file not found. I'm able to build/run just fine without Xcode.



M1 Max MBP
macOS 13.1 (22C65)
Xcode 14.2 (14C18)
Project Hashes

Build with Ninja

utils/build-script --skip-build-benchmarks --bootstrapping=off \
  --skip-ios --skip-watchos --skip-tvos --swift-darwin-supported-archs "$(uname -m)" \
  --sccache --debug --swift-disable-dead-stripping

Build for Xcode

utils/build-script --debug --swift-darwin-supported-archs "$(uname -m)" --xcode --clean


Scheme - Info

In that^ picture I three swift-frontend executables:

  1. /Users/benn/git/swift-project/build/Xcode-DebugAssert/swift-macosx-arm64/bootstrapping0/Debug/bin/swift-frontend
  2. /Users/benn/git/swift-project/build/Xcode-DebugAssert/swift-macosx-arm64/bootstrapping1/Debug/bin/swift-frontend
  3. /Users/benn/git/swift-project/build/Xcode-DebugAssert/swift-macosx-arm64/Debug/bin/swift-frontend

Scheme - Arguments