-
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
Pre-built XCFrameworks cannot be used with Xcode 14.3 / Swift 5.8 #2180
Comments
Experiencing the same issue with Xcode 14.3 Beta 1 and Beta 2:
|
Same issue with Xcode 14.3 Beta 2. |
@sunlighing: Your issue looks similar, but is actually different – you can't use frameworks built by a newer Swift compiler version in Xcode/app using an older compiler version. Basically tl;dr: the newer compiler may generate chunks in the Swift module interface potentially not yet known by your (older) compiler version, so Library distribution only allows the framework to be consumed by the same or newer compiler version. For the other guys: it won't differ with future Betas 'cause there's an issue with Library distribution/Module compatibility in place. The weird thing here is it complains about |
There is a work around for cocoapods, add these code to Podfile
It works with FBSDK 16.0 and Xcode Version 14.3 beta 2 (14E5207e) |
This workaround is not working on the RC for us. With version 15 & 16. |
Well, isn't CocoaPods building the libs from source? 🤔 In that case, the workaround isn't really needed… TL;DR: |
This issue has been fixed in Xcode 14.3 RC2. The app compiles and builds successfully for me 🎉 From the Relese Notes:
|
We see the same issue building binary xcframeworks for distribution with Xcode 14.1 and are considering continuing to build our binary distributions with Xcode 13.3.1 - firebase/firebase-ios-sdk#11010 |
@paulb777 Weeeell…Apple will make it simple for us (with 14.1 minimum requirement), as every year. 😄 |
Hi!! Any solution on this? 😭 |
I am facing the same issue with Xcode 13.2 |
Cocoapod version 1.11.3 works for me |
Can we resolve this issue by using the same Xcode version 13.2.1? |
Checklist before submitting a bug report
Xcode version
14.3 Beta
Facebook iOS SDK version
16.0.0
Dependency Manager
Prebuilt Binaries
SDK Framework
Core
Goals
Compile a project with pre-built Facebook SDKs linked.
Expected results
The project compiles successfully.
Actual results
I'm getting a following error:
The same applies to 15.1.0 binaries complaining about being built with Swift 5.6. In both cases, both Static and Dynamic ones result in this error.
As the configuration seems to already use
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
, I have really no quick idea how to solve this. 🤔SKIP_INSTALL=NO
could have some potential, but I can't really say…Testing
Test case here would be a successful linking in a project with both Xcode 14.2 and 14.3.
Escalation
I know that Xcode 14.3 is still in Beta, but I guess this needs to be addressed ASAP, on top of that I've got no issues with other pre-built SDKs like Firebase for example, which means that something's already wrong with the XCFrameworks distribution setup that would cause this issue regularly with Apple updating the compiler version in Xcode.
The text was updated successfully, but these errors were encountered: