Skip to content

Commit a1aac6c

Browse files
Fix macOS <11 builds with Xcode 13 RC (#797)
* Fix macOS <11 builds with Xcode 13 RC Fixes #796. * wip * Update Tests/ComposableArchitectureTests/ViewStoreTests.swift Co-authored-by: Brandon Williams <[email protected]> Co-authored-by: Brandon Williams <[email protected]>
1 parent d15101d commit a1aac6c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/ComposableArchitecture/Beta/Concurrency.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Combine
22
import SwiftUI
33

4-
#if compiler(>=5.5)
4+
#if compiler(>=5.5) && canImport(_Concurrency)
55
@available(iOS 15, macOS 12, tvOS 15, watchOS 8, *)
66
extension Effect {
77
/// Wraps an asynchronous unit of work in an effect.

Tests/ComposableArchitectureTests/EffectTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ final class EffectTests: XCTestCase {
210210
}
211211
#endif
212212

213-
#if compiler(>=5.5)
213+
#if compiler(>=5.5) && canImport(_Concurrency)
214214
func testTask() {
215215
guard #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) else { return }
216216

Tests/ComposableArchitectureTests/ViewStoreTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ final class ViewStoreTests: XCTestCase {
137137
XCTAssertNoDifference(results, [0, 1])
138138
}
139139

140-
#if compiler(>=5.5)
140+
#if compiler(>=5.5) && canImport(_Concurrency)
141141
func testSendWhile() {
142142
guard #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) else { return }
143143

0 commit comments

Comments
 (0)