Installing Swift on Windows

huangapple go评论68阅读模式
英文:

Installing Swift on Windows

问题

我正在按照https://www.swift.org/getting-started/#on-windows 中的步骤操作。除了最后一步在 x86 Native Tools for VS2019 Command Prompt 中运行以下命令之外,一切正常。

第1步和第4步执行正常,但在第2步和第3步中,我遇到了错误 "系统找不到指定的文件"。

我该如何修复这个问题?

英文:

I am following the steps in https://www.swift.org/getting-started/#on-windows

Everything is fine except the last step running the following in x86 Native Tools for VS2019 Command Prompt

copy /Y %SDKROOT%\usr\share\ucrt.modulemap "%UniversalCRTSdkDir%\Include\%UCRTVersion%\ucrt\module.modulemap"
copy /Y %SDKROOT%\usr\share\visualc.modulemap "%VCToolsInstallDir%\include\module.modulemap"
copy /Y %SDKROOT%\usr\share\visualc.apinotes "%VCToolsInstallDir%\include\visualc.apinotes"
copy /Y %SDKROOT%\usr\share\winsdk.modulemap "%UniversalCRTSdkDir%\Include\%UCRTVersion%\um\module.modulemap"

The 1st and 4th execute fine but with the 2nd and 3rd I get the error "System could not find the specified file"

How can I fix this?

答案1

得分: 1

The two failing file paths indicate that the file names start with “visualc”. Those file names have been changed to start with “vcruntime”.

英文:

The two failing file paths indicate that the file names start with “visualc”. Those file names have been changed to start with “vcruntime”.

huangapple
  • 本文由 发表于 2023年5月7日 20:34:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/76193960.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定