I figured out the source of my problem. I had installed an open source version of Swift and that what was selected in the Xcode > Toolchains settings. Once I selected the current Swift version and also deleted the old version from there everything is now working as expected.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: