Skip to content

Commit 7aebb8f

Browse files
authored
Fix AppCheckAPITests for Xcode 13.0 macos/Catalyst (#8848)
1 parent cc0ec10 commit 7aebb8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

FirebaseAppCheck/Tests/Unit/Swift/AppCheckAPITests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ final class AppCheckAPITests {
6565
}
6666

6767
// Get token (async/await)
68-
#if swift(>=5.5)
68+
#if compiler(>=5.5) && canImport(_Concurrency)
6969
if #available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *) {
7070
// async/await is a Swift 5.5+ feature available on iOS 15+
7171
Task {
@@ -99,7 +99,7 @@ final class AppCheckAPITests {
9999
}
100100

101101
// Get token (async/await)
102-
#if swift(>=5.5)
102+
#if compiler(>=5.5) && canImport(_Concurrency)
103103
if #available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *) {
104104
// async/await is a Swift 5.5+ feature available on iOS 15+
105105
Task {
@@ -171,7 +171,7 @@ final class AppCheckAPITests {
171171
}
172172
}
173173
// Get token (async/await)
174-
#if swift(>=5.5)
174+
#if compiler(>=5.5) && canImport(_Concurrency)
175175
if #available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *) {
176176
// async/await is a Swift 5.5+ feature available on iOS 15+
177177
Task {

0 commit comments

Comments
 (0)