Skip to content

Commit

Permalink
[Storage] Fix visionOS build on Xcode 15 beta 6
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard committed Aug 9, 2023
1 parent 77fa63d commit d2341b9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion FirebaseStorage/Sources/Internal/StorageUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,17 @@ import Foundation
import MobileCoreServices
#elseif os(macOS) || os(watchOS)
import CoreServices
#endif
#endif // os(iOS) || os(tvOS)

// swift(>=5.9) implies Xcode 15+
// Need to have this Swift version check to use os(visionOS) macro, VisionOS support.
// TODO: Remove this check and add `os(visionOS)` to the `os(iOS) || os(tvOS)` conditional above
// when Xcode 15 is the minimum supported by Firebase.
#if swift(>=5.9)
#if os(visionOS)
import MobileCoreServices
#endif // os(visionOS)
#endif // swift(>=5.9)

class StorageUtils {
internal class func defaultRequestForReference(reference: StorageReference,
Expand Down

0 comments on commit d2341b9

Please sign in to comment.