Swift with Ninja setup error

This sounds like the same issue as [Stuck Newbie Needs Help] Can't run bin/swiftc - #4 by danielfalbo — bootstrapping does not work on Apple silicon Macs (no idea why and how). The bug seems to have been around from the start though. Is this your first time spot checking a macosx-arm64 build?