-2

I am using Mac 14 and the highest version of Xcode that I can install is 16.2
And it comes with the bundled swift component - 6.0.3 version.

But my project requires swift 6.2 or later.

I was able to install swift 6.2.1 using brew install swift and added that to the ENV Path.

However xcode is still trying to use the bundled version - 6.0.3

How can I make Xcode use my new installed swift 6.2.1 instead of bundled 6.0.3?

New contributor
Pavlo Pylypchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
2
  • What's your macOS version? What's your Xcode version? Usually, the Swift version comes with an xcode version, and the Xcode is dependent of macOS version xcodereleases.com gives a good idea of which xcode version brought which Swift version and what "down" version they can use Commented yesterday
  • Xcode does technically support toolchains other than the bundled one, but you'd likely run into errors like this if you try to use a newer Swift version on an older Xcode. In any case, to submit to the app store you must build the project using the bundled toolchain. Commented yesterday

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.