# Problems with \`build-script\` building compiler with \`--xcode\`

**URL:** <https://forums.swift.org/t/problems-with-build-script-building-compiler-with-xcode/53477>\
**Category:** Compiler\
**Tags:** xcode, build-script, help-needed\
**Created:** [November 13, 2021, 11:52pm UTC](https://forums.swift.org/t/problems-with-build-script-building-compiler-with-xcode/53477 "2021-11-13T23:52:12Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![LucianoPAlmeida](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/lucianopalmeida/32/2134_2.png) [@LucianoPAlmeida](https://forums.swift.org/u/LucianoPAlmeida)\
**Post date:** [November 20, 2021, 7:58pm UTC](https://forums.swift.org/t/problems-with-build-script-building-compiler-with-xcode/53477/7 "2021-11-20T19:58:47Z")

</div>

> [@kbongort](#):
>
> What branch / commit are you trying to build?

I on main branch, always update checkout before trying to build for the a couple of weeks or so :)

> [@johnno1962](#):
>
> though untill recently a --xcode build worked but I cloned main this afternoon and even that is failing at the moment.

What is the error you been seeing?  
It's been like that for a couple of weeks, I found that the issue with LLVM libraries is related to the fact that I'm building with `--release-debuginfo --debug-swift` and because of that LLVM libraries are built in `llvm-macosx-arm64/RelWithDebugInfo/lib/libLLVMSupport.a` but as we can see on the error it tries to find it in the Swift configuration folder for some reason. For what I could understand [https://github.com/apple/swift/blob/7123d2614b5f222d03b3762cb110d27a9dd98e24/cmake/modules/SwiftXcodeSupport.cmake#L52](https://github.com/apple/swift/blob/7123d2614b5f222d03b3762cb110d27a9dd98e24/cmake/modules/SwiftXcodeSupport.cmake#L52) is designed to fix this problem but apparently is not being applied for those libraries ... so I'm still not sure what is the issue here.

The purpose of the question was more to know if people are using some workaround, or they are not using Xcode at all and using ninja build with some editor like VSCode which I tried, but was not so trivial to configure :(

---

_[View the full topic](https://forums.swift.org/t/problems-with-build-script-building-compiler-with-xcode/53477)._
