Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when installing Swift Open Source Xcode Toolchain: You cannot install Swift Open Source Xcode Toolchain in this location

Tags:

macos

ios

swift

I just downloaded the Swift Open Source Xcode Toolchain as described here.

When following the installation instructions however, the second instruction already fails, which says:

Run the package installer, which will install an Xcode toolchain into /Library/Developer/Toolchains/.

An Xcode toolchain (.xctoolchain) includes a copy of the compiler, lldb, and other related tools needed to provide a cohesive development experience for working in a specific version of Swift.

I am getting the following error when running the package installer:

You cannot install Swift Open Source Xcode Toolchain in this location. The Swift Open Source Xcode Toolchain installer does not allow its software to be installed here.

enter image description here

Update: Someone suggested earlier that the issue might be that I'm not running El Capitan (which is true). I didn't have the opportunity to update my OS in the meantime, can anyone else having the same issue confirm that this might be the reason?

like image 746
nburk Avatar asked Feb 09 '23 09:02

nburk


1 Answers

You don't have the requirements met as described on the Swift download page. The error message you are getting is unfortunate.

Install OS X 10.11 (El Capitan) and it'll work.

like image 83
David Turnbull Avatar answered Feb 10 '23 23:02

David Turnbull