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

Fixed Catalyst build with Xcode 15 beta 1 #2586

Merged
merged 1 commit into from
Jun 6, 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
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import UIKit
extension UIApplication {

@available(iOS 13.0, *)
@available(macCatalystApplicationExtension 13.1, *)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm should this also be available in macCatalyst (not an application extension)?

Copy link
Contributor Author

@NachoSoto NachoSoto Jun 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS already satisfies that requirement implicitly (iOS is basically macCatayst too unless you add a specific @available for it).
Which means that this is available for macCatalyst 13.0.

I have no idea why Apple changed the requirement here in Xcode 15, but either way this property is only used from places that require iOS 15, which is why everything else compiles.

@available(macOS, unavailable)
@available(watchOS, unavailable)
@available(watchOSApplicationExtension, unavailable)
Expand Down