apple / swift-async-dns-resolver

A Swift library for asynchronous DNS requests, wrapping c-ares with Swift-friendly APIs and data structures.
Apache License 2.0
82 stars 12 forks source link

Package does not build for iOS. Error "Concurrency is only available in iOS 13.0.0 or newer" #25

Closed mkbrwr closed 4 months ago

mkbrwr commented 4 months ago

When building iOS application with this packet I get error in file AsyncDNSResolver.swift "Concurrency is only available in iOS 13.0.0 or newer" The issues seems to be that public protocol DNSResolver is missing @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) This started to happen after commit 62fbedd992abf97e83549dde7c7cf9ab7b74c8d8

yim-lee commented 4 months ago

@mkbrwr Thanks for reporting. Would you be able to test if https://github.com/apple/swift-async-dns-resolver/pull/26 fixes the issue for you?

mkbrwr commented 4 months ago

@yim-lee I've tested #26 and it fixes the issue. Thank you! Also I have a question, is it possible to add some kind of a test that will verify if package builds for iOS ?

yim-lee commented 4 months ago

Thanks @mkbrwr. Sorry for the trouble. This release includes the fix: https://github.com/apple/swift-async-dns-resolver/releases/tag/0.3.0

is it possible to add some kind of a test that will verify if package builds for iOS

This is something we want but unfortunately don't have yet.