Hello.
There is iOS Framework which has 2 modules.
When we add it into KMP via Cocoapods we have generated classes only to first one
PSPDFKit
.
If we add module name to the pod gradle config:
Copy code
pod("PSPDFKit") {
moduleName = "PSPDFKitUI"
}
We have access only to
PSPDFKitUI
.
What is actually happening? I saw somewhere mentions that KMP has limitation to generate interop classes to only 1 module per framework (can't find them anymore). Is it the case?
Can we workaround this somehow?
j
Jacob Rhoda
04/25/2024, 6:45 PM
Could you share your full build file?
Jacob Rhoda
04/25/2024, 6:46 PM
I'm going to guess you will have to have multiple pod dependencies for each one of the PSPDFKit frameworks you want to import with cinterop
v
Vlad
04/25/2024, 7:16 PM
That is "full" basically.
We just playing in the empty project.
We tried to import it twice (per module in pod), but it won't build. I would assume coz of duplicated dependencies.
And we failed to somehow exclude dependency x from pod y and vice-versa