-
Notifications
You must be signed in to change notification settings - Fork 2.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
Issue with sharing pods with multiple targets #11901
Comments
This is not a CocoaPods issue. It is not possible to link a static framework into both the app and dynamic frameworks. See the explanation at https://github.com/firebase/firebase-ios-sdk/blob/master/docs/firebase_in_libraries.md |
But I am just trying to have different pods for two app targets. Isn't that possible? Where did I mention the static framework? |
Reopening since it's dynamic:
|
@paulb777 Any update on this issue please? Is there any other way you would like to suggest to have pods separately for separate targets? I can live with the workaround for now but managing two codebases one with ApplePayPod and other without is a pain. |
@nrajput05 you're welcome to look into it and send pull requests if you have a pressing time constraint. CocoaPods is an open source run by volunteers in their spare time. |
Can you point me in some direction of what is causing this issue in terms of the internal working of Cocoapods? |
Report
What did you do?
I want to keep Braintree/ApplePay pod in a child target which should have some common pods as well. Here is how the pod file looks like
What did you expect to happen?
testCommonDeps compiles successfully but testAllDeps fails with these errors:
Multiple commands produce '/Users/xxxx/Library/Developer/Xcode/DerivedData/testFlurry-dswkraujlkgxwmdvcldydpsuplzu/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/Braintree/PayPalDataCollector/PPRiskMagnes.framework'
CocoaPods Environment
Stack
Installation Source
Plugins
The text was updated successfully, but these errors were encountered: