Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[visionOS] Fix Storage SDK build on Xcode 15 beta 6 #11667

Merged
merged 1 commit into from
Aug 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading