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
Multiple Class is implemented in both warnings. #10989
Comments
Not sure if its entirely cocoapods related but it might be. Would need help to diagnose this |
Possibly related to linking a static pod into the dynamic |
We have a similar issue. Our project contains several frameworks with dependencies in them that are shared. After updating from cocoapods 1.10.1 to 1.11.2 we got the same issue. The problem is not only that we have now duplicates, but also that the dependencies do not work as expected. For example, our Firebase Remote Config does not work since there are multiple instances of same classes.
Note that this does not happen with 1.10.1 Our setup is pretty long because we have several micro frameworks and multiple example apps, but let me put the important pieces. The main app is the Playtomic target, we also have some shared frameworks like foundation, sdk, playtomic_ui or mozart, and then we have multiple features in modules like Paywall or SocialCommunity. Here the setup for some of them with the parts related to Firebase:
EDIT: The issue seems to come from the |
@angelolloqui It is problematic to link static frameworks into dynamic frameworks. See a detailed explanation at https://github.com/firebase/firebase-ios-sdk/blob/master/docs/firebase_in_libraries.md. To link static frameworks into other frameworks with CocoaPods, Regarding #10234, the |
@zemos my setup is pretty much similar to yours.
I't try use_frameworks with static linkage to see if it changes anything |
Nope,
|
I have the same error, this happens because both the framework and the application use firebase sdk and generate these conflicts |
@angelolloqui I'm having the same issue, did you by any chance suceed to fix it ? :D |
Report
What did you do?
bundle exec pod install
What did you expect to happen?
Install all pod dependencies correctly.
What happened instead?
This issue exists only in Xcode 13. When using Xcode 12, everything works as expected.
When using Xcode 13, I receive multiple warnings stating that various classes are implemented in two places. For example:
It also causes a significant increase in build size.
I've noticed that pods modify Pods-Unity-iPhone.*.xcconfig files by adding an entry with OTHER_LDFLAGS and a few others.
This issue doesn't happen when I add
use_frameworks! :linkage => :static
to Podfile or when I remove duplicate frameworks from OTHER_LDFLAGS section in Pods-Unity-iPhone.*.xcconfig files.CocoaPods Environment
Stack
Installation Source
Plugins
Podfile
The text was updated successfully, but these errors were encountered: