I’m importing pure iOS libraries right into a KMP mission utilizing native CocoaPods Gradle plugin.
For instance:
cocoapods {
...
pod("FirebaseCrashlytics") {
model = "11.6.0"
extraOpts = listOf("-compiler-option", "-fmodules")
}
}
I can use them with none issues inside my shared module (iosMain).
Then I construct the shared framework utilizing multiplatform-swiftpackage library:
multiplatformSwiftPackage {
swiftToolsVersion("5.9")
distributionMode { native() }
buildConfiguration { debug() }
outputDirectory(File(rootProject.projectDir, "swiftpackage"))
targetPlatforms {
iOS { v("16") }
}
}
and import it into Xcode utilizing Swift Package deal Supervisor.
I can construct the iOS app efficiently however whereas operating it crashes with this exception:
dyld[53857]: Library not loaded: @rpath/FirebaseCrashlytics.framework/FirebaseCrashlytics
Referenced from: <14169435-4CE9-3CBB-9344-F647245BBB78>
I am getting the identical error on each library I’ve tried.
What am I lacking?
Thanks prematurely.