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

Add iOSApplicationExtension unavailable annotations to fix compilation on Xcode 13b3 #564

Merged
merged 2 commits into from
Aug 3, 2021

Conversation

S2Ler
Copy link
Contributor

@S2Ler S2Ler commented Jul 27, 2021

Xcode 13b4 still has this rule and it is unclear if it will be fixed at all. It turns out the the amount of changes is minimal, so why not support Xcode 13 right now.

This is a regression due to a new rule in Xcode 13b3:

Linking Swift packages from application extension targets or watchOS applications no longer emits unresolvable warnings about linking to libraries not safe for use in application extensions. This means that code referencing APIs annotated as unavailable for use in app extensions must now themselves be annotated as unavailable for use in application extensions, in order to allow that code to be used in both apps and app extensions. (66928265)

https://developer.apple.com/documentation/xcode-release-notes/xcode-13-beta-release-notes

@S2Ler S2Ler requested a review from a team July 27, 2021 18:37
…n on Xcode 13b3

This is a regression due to a new rule in Xcode 13b3:

Linking Swift packages from application extension targets or watchOS applications no longer emits unresolvable warnings about linking to libraries not safe for use in application extensions. This means that code referencing APIs annotated as unavailable for use in app extensions must now themselves be annotated as unavailable for use in application extensions, in order to allow that code to be used in both apps and app extensions. (66928265)

https://developer.apple.com/documentation/xcode-release-notes/xcode-13-beta-release-notes
@julianrex julianrex enabled auto-merge (squash) August 3, 2021 15:28
@julianrex julianrex merged commit 7d5185e into main Aug 3, 2021
@julianrex julianrex deleted the s2ler/xcode-13b3-fix branch August 3, 2021 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants