Skip to content

Suddenly getting "only available in macOS 10.15 or newer" errors #532

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

Closed
eob opened this issue Dec 17, 2021 · 5 comments
Closed

Suddenly getting "only available in macOS 10.15 or newer" errors #532

eob opened this issue Dec 17, 2021 · 5 comments

Comments

@eob
Copy link

eob commented Dec 17, 2021

Hi there,

I awoke today to my Swift project no longer building with the following error from within this package:

AsyncHTTPClient/NIOTransportServices/TLSConfiguration.swift:25:35: 
'tls_protocol_version_t' is only available in macOS 10.15 or newer

As far as I'm aware, barring MacOS running some update process overnight that mangled things, nothing has changed in my project. Here is what I think is the relevant part of my Package.swift:

  platforms: [    .macOS(.v12)   ],

I'm on XCode Version 13.2 (13C90).

My guess is that this problem ultimately isn't related to async-http-client, so I feel bad asking on your issue tracker, but even that the error is bubbling up from within this library I wonder if anyone on the project has seen it before and knows the fix?

Thanks!
Ted

@eob eob closed this as completed Dec 17, 2021
@guillaumekh
Copy link

@eob How did you solve this?
I'm having the same issue, and adding an @available(macOS 10.15, *) to circumvent this feels really awkward.

@jstorm31
Copy link

Same issue for me after upgrading to XCode 13.2.1

@fabianfett
Copy link
Member

This was an issue in an earlier version of AsyncHTTPClient that was fixed with #411. Please update to at least 1.5.1 to fix the issue.

@guillaumekh
Copy link

@fabianfett thanks for letting us know. Sorry I missed it in release notes.

@jstorm31 Do you use soto? The current stable version of [email protected] has a dependency on [email protected] which has a dependency on [email protected].

I've opened a ticket on soto's tracker: soto-project/soto-core#486

@jstorm31
Copy link

jstorm31 commented Jan 1, 2022

Thanks for the info. My version of the library was 1.3.0 (some of my other dependencies fixed it to this version). I upgraded to 1.5.1 and it looks fine now.

I don't use soto @guillaumekh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants