-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Some package import do not work with Swift 5.2 #111
Comments
Can you provide the generated Package.swift, it'll be in |
Sure! There it is
|
I've manually changed the swift-tools-version back to 5.1 for now. That appears to fix things. |
I too have a script failing since upgrading Xcode to 11.4.x, it does My script fails like (linefeeds added to error message for clarity):
The generated
I tried changing
I found SR-12075 which seems to be all about the change to the error message, which mentions ”SwiftPM should tell me that I need to specify name: "SwiftSyntax" in the declaration of the dependency”, however looking at the In fact, in the swift interface all those static functions are preceded by
Is |
AFAICT, you changed the wrong thing. You should change |
D'oh! Indeed that works, thanks. |
I'm having the same issue with SwiftProtobuf.
Getting error
There's no option to add such |
It is interesting that if I do There's a difference actually, |
Fixed with 1.18.0 |
This still is broken in some cases. For example when using
The error is:
The package name should be "Path.swift" instead of "Path" in the generated Package.swift
|
Thanks for the report, would you mind creating a ticket? |
This is new in Swift 5.2, I think the
Package.swift
needs to be generated differently.With this script,
we get the following error
The text was updated successfully, but these errors were encountered: