Couldn't build C module 'SwiftShims'

It definitely should work in VS 2022 without any VS 2019 tools. I am using pure VS 2022 tools and it works fine. I would rather be careful not to install multiple tools versions, it might get harder to track down the problem. At least you should then first try to use Swift inside the according “x64 Native Tools … Command Prompt”.

1 Like

Thanks for your reply. Unfortunately, both fails:

to @sspringer

Update: It works in NuShell (Windows Terminal) after a repair-install of Swift 5.9.

:slightly_smiling_face:

You then should try to use Visual Studio Code with the Swift extension by the Swift Server Group.

1 Like

Thanks. It does provide intellisense for Swift like Xcode does, right?

Yes (it is maybe not called like this for Swift or maybe has less features, but it is based on the same technology).

I would recommend the following setting in Visual Studio Code: Editor › Inlay Hints: offUnlessPressed.

1 Like