-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Xcode 13 beta 3 - SwiftPackageManager error App Extensions #1799
Comments
Same experience on my end. I can't build my app. |
I get the same compiler error in FBSDKLoginKit as well for FBSDKTooltipView.m line 518 |
same for me, can't build |
One solution is to add |
When is this fix being made available? |
Same issue, cannot build the app. |
In the meantime, did anyone figure out a workaround? |
Same with Xcode 13 beta 4 and Facebook SDK v11.1.0 |
A fix for this has been committed to master with 0e1d877 and will be available with the next release. In the meantime you should be able to point your Podfile or Package.swift file to use the version on master. You should be able to use one of the following for your Podfile pod 'FBSDKCoreKit', :git => 'https://github.com/facebook/facebook-ios-sdk.git', :branch => 'master'
- or -
pod 'FBSDKCoreKit', :git => 'https://github.com/facebook/facebook-ios-sdk.git', :commit => '0e1d8774db' And something like the following for your Package.swift file .package(
url: "https://github.com/facebook/facebook-ios-sdk.git",
.branch("master")
)
.package(
url: "https://github.com/facebook/facebook-ios-sdk.git",
.revision("0e1d8774db783d85bd8fc3b53ec96444c048ae42")
) Syntax Reference: |
Xcode13b5 reverts this breaking change. Things should go back to normal from now on. |
I can confirm that this works now in Xcode 13 beta 5. |
Agreed! Looks good on my end in XCode 13 beta 5. |
Closing this out as it fixed in the latest Xcode beta. |
Checklist before submitting a bug report
Xcode version
Xcode 13.0 beta 3 (13A5192i
Swift version
No response
Installation platform & version
SPM 5.4.0
Package
Core
Goals
Probably due to:
Swift Packages
Resolved in Xcode 13 Beta 3
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)
Expected results
successful project build
Actual results
Extensions targets don't compile due:
'sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based solutions where appropriate instead.
and
'openURL:' is unavailable: not available on iOS (App Extension)
Steps to reproduce
No response
Code samples & details
No response
The text was updated successfully, but these errors were encountered: