Skip to content

Commit

Permalink
Fix macOS <11 builds with Xcode 13 RC (pointfreeco#797)
Browse files Browse the repository at this point in the history
* Fix macOS <11 builds with Xcode 13 RC

Fixes pointfreeco#796.

* wip

* Update Tests/ComposableArchitectureTests/ViewStoreTests.swift

Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com>

Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com>
  • Loading branch information
stephencelis and mbrandonw committed Sep 15, 2021
1 parent d15101d commit a1aac6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/ComposableArchitecture/Beta/Concurrency.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Combine
import SwiftUI

#if compiler(>=5.5)
#if compiler(>=5.5) && canImport(_Concurrency)
@available(iOS 15, macOS 12, tvOS 15, watchOS 8, *)
extension Effect {
/// Wraps an asynchronous unit of work in an effect.
Expand Down
2 changes: 1 addition & 1 deletion Tests/ComposableArchitectureTests/EffectTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ final class EffectTests: XCTestCase {
}
#endif

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

Expand Down
2 changes: 1 addition & 1 deletion Tests/ComposableArchitectureTests/ViewStoreTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ final class ViewStoreTests: XCTestCase {
XCTAssertNoDifference(results, [0, 1])
}

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

Expand Down

0 comments on commit a1aac6c

Please sign in to comment.