Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.19 KB

README.md

File metadata and controls

38 lines (23 loc) · 1.19 KB

macOS Ventura

On macOS, Swift comes bundled with Xcode, which is Apple’s integrated development environment (IDE). Xcode includes everything you need to create Swift applications for Apple platforms.

Download and install Xcode from the App Store:

Once installed, open Xcode, and it’ll ask your permission to install additional components:

Install these components, then open the Terminal application and enter the following command:

xcode-select -p

This command should print /Applications/Xcode.app/Contents/Developer, which is the directory where Xcode finds its command line tools. If you see a different directory, enter the following command to set the correct value:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

Note: This command requires administrator privileges, so it’ll ask for your password.

Finally, run the command below to see what version of Swift is on your system:

swift --version

The current version of Xcode (14) includes Swift 5.7.


Last updated: 5 Jan. 2023
Author: Steven Van Impe