paulb777
(Paul Beusterien)
1
With the introduction of Xcode 13 RC, our libraries started to fail to compile for macOS - presumably because swift 5.5 now supports macOS 11, but the Swift Concurrency symbols are not available. What is the proper way to wrap Concurrency calls in code that support multiple Xcode versions and platforms?
3 Likes
joshw
(Josh)
2
Somewhat related; the discussion here. Would something like if #canImport(_Concurrency) work perhaps?
1 Like
paulb777
(Paul Beusterien)
3
#if compiler(>=5.5) && canImport(_Concurrency) seems to work. Thanks!
The remaining question from Fails to compile Xcode 13 RC (note: needs macOS release) · Issue #110 · swift-server/swift-service-lifecycle · GitHub still applies: will #if canImport(_Concurrency) stick around in future Swift versions?
1 Like