objcio / tiny-networking

Tiny Networking Library

Home Page:http://talk.objc.io/collections/networking

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot build with Xcode 12.5.1 or earlier

davidjrogers opened this issue · comments

This code does not build with Xcode 12.5.1. Only works with not yet publicly released versions of iOS and dev tools.

The changes from #25 require beta iOS 15 developer tools and may not be backward compatible. Of course this hinges on what Apple releases next week but I feel that merging changes like this that are currently in beta are premature.

Building on Big Sur with Xcode 12.5.1 results in an error 'async' modifier is only valid when experimental concurrency is enabled on line 289 of Endpoint.swift.

Oh that's definitely something we should fix! If you have time please send a PR, otherwise I can look into this sometime next week.

Unfortunately I'm not sure right now how to fix it. Maybe something like wrapping the function in

#if swift(>=5.5) ?

Hey @davidjrogers, I think this should be fixed now!