-
Notifications
You must be signed in to change notification settings - Fork 43
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
@available for iOS12, but uses types from iOS13. #122
Comments
That would be a bug in the availability annotation here actually - we should fix that. We should use |
Huh wait, these are actually already correct on main: https://github.com/swift-server/swift-service-lifecycle/blob/main/Sources/Lifecycle/Lifecycle.swift#L173
This was done in #118 we're just missing a release from 2022 :-) @tomerd would you want to do the tag here, just in case there's anything else you'd like to do at the same time? |
published 1.0.0-alpha.11 |
Awesome response guys. All working over here. Thanks you. |
I'm trying to use the Hummingbird server as a test server for UI testing. After adding Hummingbird and trying to compile I'm getting a series of compilation errors from the swift-service-lifecycle code. One of which looks like this:
Looking at
Lifecycle.swift
I can see this code:Now if I'm reading this right, it's saying that it should be available for iOS12 (which is what this project is still supporting :-( ) but it's using
Task
which only came with iOS13 as the error indicates.How do I fix this?
The text was updated successfully, but these errors were encountered: