Xcode build failing linking swift-compatibility-symbols

Setting up the workspace and project as described in Getting started guide I'm getting the following build error (gist):

clang: error: no such file or directory: '/Users/matthewcheok/Documents/Projects/swift-project/build/Xcode-MinSizeRelAssert/llvm-macosx-arm64/Debug/lib/libLLVMSupport.a'
clang: error: no such file or directory: '/Users/matthewcheok/Documents/Projects/swift-project/build/Xcode-MinSizeRelAssert/llvm-macosx-arm64/Debug/lib/libLLVMDemangle.a'

If I were to instead run the build via command line such as:

build/Ninja-RelWithDebInfoAssert/swift-macosx-arm64 $ ninja bin/swift-frontend

That works without any errors. Is there something wrong with how i'm configuring Xcode?

1 Like

Sorry we didn’t notice this earlier. Were you successful in resolving the issue? You were most likely building the swift-frontend target that gets generated together with the project, and not the one you are supposed to create manually.