MLKVisionImage import not found in KMP iosAdded below code
`cocoapods {// Required properties// Specify the required Pod version here. Otherwise, the Gradle project version is used.version = "1.0"summary = "Some description for a Kotlin/Native module"homepage = "Link to a Kotlin/Native module homepage"
// Optional properties// Configure the Pod name here instead of changing the Gradle project namename = "MyCocoaPod"ios.deploymentTarget = "12.0"framework { // Required properties // Framework name configuration. Use this property instead of deprecated 'frameworkName' baseName = "MyFramework" // Optional properties // Specify the framework linking type. It's dynamic by default. isStatic = false // Dependency export
// export(project(":anotherKMMModule"))@OptIn(ExperimentalKotlinGradlePluginApi::class)transitiveExport = false // This is default.}
// Maps custom Xcode configuration to NativeBuildTypexcodeConfigurationToNativeBuildType["CUSTOM_DEBUG"] = NativeBuildType.DEBUGxcodeConfigurationToNativeBuildType["CUSTOM_RELEASE"] = NativeBuildType.RELEASEpod("GoogleMLKit/BarcodeScanning") { moduleName = "MLKitBarcodeScanning" version = "6.0.0"}pod("GoogleMLKit/TextRecognition") { moduleName = "MLKitTextRecognition" version = "6.0.0"}
}`this generates and links the MLKitBarcodeScanning and MLKitTextRecognition. I'm able to access these importsimport cocoapods.GoogleMLKit.MLKTextRecognizerimport cocoapods.GoogleMLKit.MLKBarcodeand other related.But i'm not able to access the MLKVisionImage which also part of MLKTextRecognizer as per the official doc https://developers.google.com/ml-kit/vision/text-recognition/v2/ios
To ReproduceExample Steps to reproduce the behavior in sample app:
- Add the above cocoa pods to KMP project
- Sync the project
- try to import the MLKVisionImage
- should show error import not found
Expected behaviorimport cocoapods.GoogleMLKit.MLKVisionImage should be available when MLKTextRecognizer pod is added.
SDK Info:SDK GoogleMLKit/TextRecognition 6.0.0