-
Notifications
You must be signed in to change notification settings - Fork 320
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
Swift 4/5 compatibility #131
Comments
I don't use Carthage but I imagine if we just bump to Swift 5 with whatever
changes that ensues, then others can just use an older tag if they still
need Swift 4 or below, no?
…On Wed, Apr 3, 2019, 6:11 PM Rick M ***@***.***> wrote:
Please help prevent duplicate issues before submitting a new one:
- I've searched other open/closed issues for duplicates before opening
up this new issue.
Report
I'm trying to use Carthage to include Down in my Xcode 10.2/Swift 5
project. But the Down project specifies Swift 4, and I get incompatibility
errors when trying to compile/link against it.
What did you do?
Created a new Swift 5 project. Set up Carthage to include Down. Compiled,
got an error "The following binaries use incompatible versions of Swift:"
referencing my app and the Down framework.
What did you expect to happen?
This is going to be tricky, isn't it? I need to be able to compile
dependencies with Swift 5 via Carthage. I tried modifying the project, and
it builds and the tests pass, but if I update with Carthage it reverts to
Swift 4.
What happened instead?
if I update with Carthage it reverts to Swift 4. Need a version that bumps
the Swift version, but there's a backward-compatibility issue.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#131>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATY57ak31ee0PGN-91v6XRejWsJd_lwks5vdScngaJpZM4cbits>
.
|
For sure, until they need features or bugfixes you offer but need pre-Swift-5 compatibility. I'm all for staying on the bleeding edge, but I think this is a problem that's going to affect a lot of Carthage projects (or really, any project that uses third-party libraries). |
I'm conflating the Swift 5 compiler version with the selected language dialect. All we need is to use the Swift 5 compiler; we don't need to change the setting inside the Xcode project. So, building from source via Carthage should work just fine, once everything is set up properly. |
Updating to Swift 5.0 in #145 |
Please help prevent duplicate issues before submitting a new one:
Report
I'm trying to use Carthage to include Down in my Xcode 10.2/Swift 5 project. But the Down project specifies Swift 4, and I get incompatibility errors when trying to compile/link against it.
What did you do?
Created a new Swift 5 project. Set up Carthage to include Down. Compiled, got an error "The following binaries use incompatible versions of Swift:" referencing my app and the Down framework.
What did you expect to happen?
This is going to be tricky, isn't it? I need to be able to compile dependencies with Swift 5 via Carthage. I tried modifying the project, and it builds and the tests pass, but if I update with Carthage it reverts to Swift 4.
What happened instead?
if I update with Carthage it reverts to Swift 4. Need a version that bumps the Swift version, but there's a backward-compatibility issue.
The text was updated successfully, but these errors were encountered: