I built the Swift toolchain for both Ninja and Xcode following the directions in the Getting Started Guide, but am getting a series of errors that I can't figure out.
First, I was able to get the Xcode project to build successfully but at runtime, I would get the below errors:
:0: warning: unable to perform implicit import of "_Concurrency" module: no such module found
:0: error: fatal error encountered during compilation; please submit a bug report ( Swift.org - Contributing ) and include the project
:0: note: Compiler-internal integrated REPL has been removed; use the LLDB-enhanced REPL instead.
Then I fetched the latest swift build and updated my project in case I had made a change that caused issues from the original build and now I'm getting a new error at build time and I don't know how to resolve this:
ZERO_CHECK: error: invalid option '--version: xcodebuild'
My Machine Environment:
Cmake version 3.21.0
Python version Python 3.8.2
ninja version 1.10.2
sccache version 0.2.15
Xcode version 12.5.1
macOS Big Sur Big Sur 11.4
I removed --test from my toolchain build and added the environment variable to silence an error regarding xcode version:
env SKIP_XCODE_VERSION_CHECK=1 utils/build-script --skip-build-benchmarks \ --skip-ios --skip-watchos --skip-tvos --swift-darwin-supported-archs "$(uname -m)" \ --sccache --release-debuginfo --debug-swift --swift-disable-dead-stripping \ --xcode
I am using the
swift-frontend scheme to build and run the project.