What does error: 'spi-builder-workspace': Invalid manifest
mean?
#2745
-
Morning - I was digging around in my build logs (example in question: https://swiftpackageindex.com/builds/967AC3B8-B943-4910-B7BD-27AA3EBEF53B) and saw that Swift 5.7 - in particular - (not Swift 5.6 or Swift 5.8) was failing to build for this package. The swift error is that when it's parsing Package.swift, it can't resolve the symbol for
And wasn't sure what was happening. Is there a builder that's gone awry, or a flaw in an .spi file? It's not happening with other versions of builders (Swift 5.8, etc) - but I don't know how they're segmented, and what might be happening with this error. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I can't check right now but shouldn't it also do #if canImport(Foundation)
import Foundation // this here?
if ProcessInfo.processInfo.environment["CI"] != nil {
globalSwiftSettings.append(.unsafeFlags(["-Xfrontend", "-strict-concurrency=complete"])) |
Beta Was this translation helpful? Give feedback.
-
Adding the explicit "import Foundation" sorted the whole thing for Swift 5.7 - lord knows why only that one, and not Swift 5.6 or Swift 5.8 or later. I guess there was a quirky scenario where Foundation wasn't implicitly imported (it typically is on macOS, but not on iOS or Linux) |
Beta Was this translation helpful? Give feedback.
I can't check right now but shouldn't it also do
import Foundation
and not just checkcanImport
?