Skip to content

Commit 48e7f92

Browse files
mluisbrownmbrandonw
andcommitted
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 1ae306c commit 48e7f92

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
@@ -4,7 +4,7 @@ import ReactiveSwift
44
import SwiftUI
55
#endif
66

7-
#if compiler(>=5.5)
7+
#if compiler(>=5.5) && canImport(_Concurrency)
88
@available(iOS 15, macOS 12, tvOS 15, watchOS 8, *)
99
extension Effect {
1010
/// 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
@@ -169,7 +169,7 @@ final class EffectTests: XCTestCase {
169169
XCTAssertEqual(isComplete, true)
170170
}
171171

172-
#if compiler(>=5.5)
172+
#if compiler(>=5.5) && canImport(_Concurrency)
173173
func testTask() {
174174
guard #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) else { return }
175175

Tests/ComposableArchitectureTests/ViewStoreTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ final class ViewStoreTests: XCTestCase {
144144
XCTAssertEqual(results, [0, 1])
145145
}
146146

147-
#if compiler(>=5.5)
147+
#if compiler(>=5.5) && canImport(_Concurrency)
148148
func testSendWhile() {
149149
guard #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) else { return }
150150

0 commit comments

Comments
 (0)