What OS version are you on:
% sw_vers
ProductName: macOS
ProductVersion: 12.2.1
BuildVersion: 21D62
And what Xcode are you using:
% xcode-select -p
/Applications/Xcode.app/Contents/Developer
What do you see with this:
% xcrun swift --version
swift-driver version: 1.26.21 Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
Target: x86_64-apple-macosx12.0
And if you run swift
via xcrun
:
% xcrun swift
Welcome to Swift version 5.5.2-dev.
Type :help for assistance.
1> import Foundation
2> ^D
Share and Enjoy
Quinn “The Eskimo!” @ DTS @ Apple