Is a semantic version of the SwiftSyntax package for Swift 5.1 coming soon? @akyrtzi
While I wait, I have been toying with a fork in an attempt to get a head start on updating client code, but I have been running into trouble. I couldn’t find a
swift-5.1-RELEASE tag, so I checked out
swift-5.1-branch. Then I de‐GYB‐ified the package. In that state, it builds fine, and the tests pass in the package manager or with the result of
generate-xcodeproj. However, if I open the package directly in Xcode by double‐clicking
Package.swift, the built product (and anything that depends on it) is inoperable. The errors are all variations of this:
xctest (30953) encountered an error (Failed to load the test bundle. (Underlying error: The bundle “SwiftSyntaxTest” couldn’t be loaded because it is damaged or missing necessary resources. The bundle is damaged or missing necessary resources. dlopen_preflight([...]/Library/Developer/Xcode/DerivedData/swift-syntax-glexjgjummeedhaqfonfiovodnqm/Build/Products/Debug/SwiftSyntaxTest.xctest/Contents/MacOS/SwiftSyntaxTest): Library not loaded: @rpath/lib_InternalSwiftSyntaxParser.dylib
Referenced from: [...]/Library/Developer/Xcode/DerivedData/swift-syntax-glexjgjummeedhaqfonfiovodnqm/Build/Products/Debug/SwiftSyntaxTest.xctest/Contents/MacOS/SwiftSyntaxTest
Reason: image not found))
The same errors are inherited by client packages.
_InternalSwiftSyntaxParser, and where is it supposed to come from?
I wonder if this is something that can be fixed or worked around in the tagged release?