I wanted to verify before I go down this path.
There is no limitation on multiple KMM XCFrameworks being used in an iOS project, correct?
It used to be that you could have only one.
s
streetsofboston
05/02/2023, 2:52 PM
IIRC, you can have multiple ones, correct.
But you still can't have multiple instances of the same transitive dependencies.
Eg there are 3 frameworks, A, B and C.
A depends on C and exposes C (transitive).
B depends on C and exposes C as well (transitive).
This will result in issue with 'duplicate' code from C in your iOS project.
d
David Nedrow
05/02/2023, 2:52 PM
Got it, thanks.
a
Ahmed na
05/02/2023, 6:19 PM
You can do an umbrella framework that has multiple kmm modules as dependencies in the common level
Then gradle will handle transitive dependencies
And output single framework with no duplicate code
But It will add some overhead of maintaining the umbrella framework project