thebrowsercompany / windows-samples

Sample Apps for Swift on Windows
MIT License
262 stars 13 forks source link

Does not build #20

Closed treuks closed 1 month ago

treuks commented 1 month ago

Hello, I was trying to build this example and I always get an error that is somewhat like this, I have tried a bunch of different versions of swift-build, but every time I get an error that is something like this

error: 'windows-samples': Invalid manifest (compiled with: ["C:\\Users\\tks\\AppData\\Local\\Programs\\Swift\\Toolchains\\0.0.0+Asserts\\usr\\bin\\swiftc.exe", "-vfsoverlay", "C:\\Users\\tks\\AppData\\Local\\Temp\\TemporaryDirectory.p243dr\\vfs.yaml", "-L", "C:\\Users\\tks\\AppData\\Local\\Programs\\Swift\\Toolchains\\0.0.0+Asserts\\usr\\lib\\swift\\pm\\ManifestAPI", "-lPackageDescription", "-sdk", "C:\\Users\\tks\\AppData\\Local\\Programs\\Swift\\Platforms\\0.0.0\\Windows.platform\\Developer\\SDKs\\Windows.sdk", "-libc", "MD", "-I", "C:\\Users\\tks\\AppData\\Local\\Programs\\Swift\\Platforms\\0.0.0\\Windows.platform\\Developer\\Library\\XCTest-development\\usr\\lib\\swift\\windows", "-I", "C:\\Users\\tks\\AppData\\Local\\Programs\\Swift\\Platforms\\0.0.0\\Windows.platform\\Developer\\Library\\XCTest-development\\usr\\lib\\swift\\windows\\x86_64", "-L", "C:\\Users\\tks\\AppData\\Local\\Programs\\Swift\\Platforms\\0.0.0\\Windows.platform\\Developer\\Library\\XCTest-development\\usr\\lib\\swift\\windows\\x86_64", "-use-ld=lld", "-swift-version", "5", "-I", "C:\\Users\\tks\\AppData\\Local\\Programs\\Swift\\Toolchains\\0.0.0+Asserts\\usr\\lib\\swift\\pm\\ManifestAPI", "-package-description-version", "5.7.0", "C:\\Users\\tks\\Repositories\\windows-samples\\Package.swift", "-Xfrontend", "-disable-implicit-concurrency-module-import", "-Xfrontend", "-disable-implicit-string-processing-module-import", "-o", "C:\\Users\\tks\\AppData\\Local\\Temp\\TemporaryDirectory.OWsj7b\\windows-samples-manifest.exe"])
Missing or empty JSON output from manifest compilation for windows-samples

Windows SDK is 10.0.17763.132 Swift build is 20231025.2 from the recommended swift-build repo, however I've tried a lot of versions and all gave a similar error. Windows APP SDK version is 1.5.240205001-preview1, I've also tried 1.5.24060700, but neither of them worked

treuks commented 1 month ago

I managed to make it build by using swift-build 20240716.0 and the windows sdk 10.0.22621.2428.

Cheers!