Hello everyone, I have an issue trying to import ...
# multiplatform
l
Hello everyone, I have an issue trying to import SmileId cocoapods in a KMP module. I added the cocoapods dependency with the native cocoapods plugins. It generates the
cinterop-SmileID
external library and I’m able to reference some fields from
import cocoapods.SmileID
like
SmileIDVersionString
but I missing things like the main function
SmileID.initialize(config: config)
. I created a sample repo. Below is my cocoapods dependency.
Copy code
cocoapods {
        ios.deploymentTarget = "15.0" //  this min ios version
        pod("SmileID") {
            //<https://kotlinlang.org/docs/native-cocoapods-libraries.html#support-for-objective-c-headers-with-import-directives>
            extraOpts += listOf("-compiler-option", "-fmodules")
            source = git("<https://github.com/smileidentity/ios.git>") {
                commit = "c9f6cdd5fcde7af20125b92904b3b92a69342445"
            }
        }
    }
Let me know if you want me to share more details. • Do you have any idea what I’m missing in order to be able to reach
initialize
method (and others) from SmileID ? • Can we use any cocoapods dependency in KMP project or is there some limitations ?