Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile time error #59054

Open
ia91 opened this issue May 24, 2022 · 1 comment
Open

Compile time error #59054

ia91 opened this issue May 24, 2022 · 1 comment

Comments

@ia91
Copy link

ia91 commented May 24, 2022

fresh install of Swift 5.6 on Windows 10 results in compile time error
"module compiled with Swift 5.5.1 cannot be imported by the Swift 5.6.1 compiler"

@ljluestc
Copy link

ljluestc commented Jul 17, 2023

Hi, try the following script

Remove-Item -Path "C:\Library\Developer\Toolchains\swift-*" -Recurse -Force

Invoke-WebRequest -Uri "https://swift.org/builds/swift-5.6.1-release/windows10/swift-5.6.1-RELEASE/swift-5.6.1-RELEASE-windows10.exe" -OutFile "SwiftInstaller.exe"

Start-Process -FilePath "SwiftInstaller.exe" -ArgumentList "/S" -Wait

$env:Path += ";C:\Library\Developer\Toolchains\swift-5.6.1-RELEASE\usr\bin"
$env:SWIFT_EXEC = "C:\Library\Developer\Toolchains\swift-5.6.1-RELEASE\usr\bin\swift.exe"

swift --version

# Clean and rebuild your project
# Replace the following command with your project's build command
# For example, if you're using Xcode, replace it with "xcodebuild clean build"
# If you're using another build system or IDE, update the command accordingly
# Invoke-Expression -Command "<YourBuildCommand>"

Also this type of question maybe try to fix it yourself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants