Skip to content

On Windows 10, 'swift build' gets error regarding module ucrt #58450

Closed as not planned
@KimTheLearner

Description

@KimTheLearner

This is due to a "bug" in the Swift installation procedure for Windows 10. Below, after describing the issue, I have a solution. I am new at Swift, and other thoughts are welcome!

Environment

build number: Swift 5.6.1
OS: Windows 10 desktop computer

Issue Description

On Windows 10, 'swift build' gets error: invalidManifestFormat(":0: error: missing required module 'ucrt'", diagnosticFile: nil)

Test Case

After an install of Swift on Windows 10, run 'swift build', taken from Swift - Getting Started, 'Creating a Package'. That elicits the error above.

Cause

Some WinSDK files are missing.

Solution

After installing Swift 5.6.1, do the 4 copy statements on Swift - Getting Started > On Windows > Support Files, to eliminate the error. I pieced this together after reading: Trouble getting setup on Windows. I did actually install Swift before Visual Studio, as described in #58451.

Metadata

Metadata

Assignees

No one assigned

    Labels

    WindowsPlatform: WindowsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.documentationduplicateResolution: Duplicates another issueinaccurate infoBug → documentation: Inaccurate info† websiteArchive • This issue was supposed to belong in the swift-org-website repository

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions