Swift master branch Xcode build is failing

I have checked out the swift-source master branch and was trying to generate Xcode build with the below command-

./utils/build-script --xcode --release-debuginfo --debug-swift

But the build is failing with below logs-
** BUILD FAILED **

The following build commands failed:
Ld /Users/Boudhayan/Desktop/Important\ Projects/swift-source/build/Xcode-RelWithDebInfoAssert+swift-DebugAssert/llvm-macosx-x86_64/RelWithDebInfo/bin/clang normal x86_64
(1 failure)
ERROR: command terminated with a non-zero exit status 65, aborting

Do you have any idea why it is failing?
Appreciate your help in advance.

If you've also installed the Command Line Tools package, then it might be issue SR-12726, which is reportedly fixed with Command Line Tools for Xcode 11.5:

1 Like

There is also a recent message by @Max_Desiatov on that JIRA:

This is fixed for with command line tools for Xcode 11.5.

What version of Xcode are you running @iboudhayan? Is it possible for you to upgrade?

1 Like

Thanks @typesanitizer.
I have Xcode 11.5 installed, will try again to generate a clean build.

Might be worthwhile to see what the exact failure is. There should be a more detailed error message in the output/log, except it's probably hard-to-spot if you're skimming quickly.