-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[Breaking][Xcode 13.0 b3]: "error: 'shared' is unavailable in application extensions for iOS:" #8401
Comments
I found a few problems with this issue:
|
@Panajev Thanks for the report. The issue also shows up in Dynamic Links and In App Messaging. It seems like the right solution for Swift libraries, is to add the |
Short short term one would get back to Cocoapods or Carthage for a while, but it is a royal pain. I did file a bug and I hope I can get some more dupes, they really help!
Thank you for being so on point and quick to answer on a weekend :)!
…Sent from my iPhone
On 17 Jul 2021, at 15:22, Paul Beusterien ***@***.***> wrote:
@Panajev Thanks for the report. The issue also shows up in Dynamic Links and In App Messaging.
It seems like the right solution for Swift libraries, is to add the @available(iOSApplicationExtension, unavailable) annotation, but it's not immediately clear what to do for Objective C libraries.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Suggested approach at https://forums.swift.org/t/set-application-extension-api-only-on-a-spm-package/39333/21. I'll give it a try in the next few days if no one else beats me to it. |
Hello @paulb777 thanks for the fix :). Do you think this will be part of an upcoming 8.4.0 release or if I want to build against both Xcode 13 and 12 I should be using a specific commit on SwiftPM? |
Hi @Panajev We cherry-picked the fix to 8.4.0 so it should be out later this week. In the meantime you could point to the release-8.4 branch. |
Thanks!!!!
…Sent from my iPhone
On 19 Jul 2021, at 18:05, Paul Beusterien ***@***.***> wrote:
Hi @Panajev We cherry-picked the fix to 8.4.0 so it should be out later this week. In the meantime you could point to the release-8.4 branch.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
Hello,
When compiling our application, I see an error like:
Note that this was not happening in our app with Xcode 13.0 beta 2, it started happening today when I updated to Xcode 13.0 beta 3). Apple requires the library itself to be annotated like so:
See: https://forums.swift.org/t/set-application-extension-api-only-on-a-spm-package/39333/11
This is related to a change in Xcode made by Apple deliberately and for which they provided annotation library authors have to add when declaring methods that would trigger that compilation error.
Thank you in advance for your help :)!
Kind Regards,
Goffredo Marocchi
Notes
Steps to reproduce:
What happened? How can we make the problem occur?
Download Xcode 13.0 b3, compile a project that imports Firebase iOS SDK (including App Distribution too) using Swift PM (cocoapods works for this library for now).
Relevant Code:
The compilation issue occurs in Firebase's code as the SwiftPM package is imported.
The text was updated successfully, but these errors were encountered: