SK
01/23/2024, 9:49 PMSK
01/24/2024, 12:46 AMalex009
01/25/2024, 3:20 AMbuild/bin/arch/buildTypeFramework
but now copy only *.framework directory.
So to fix it please add in gradle config:
tasks.matching { it.name == "syncFramework" }.configureEach {
doLast {
val linkTasks: List<KotlinNativeLink> = this.dependsOn.filterIsInstance<TaskProvider<*>>()
.map { it.get() }
.filterIsInstance<KotlinNativeLink>()
val linkTask: KotlinNativeLink = linkTasks.first()
val genDir = File(linkTask.outputFile.get().parentFile, "MultiPlatformLibrarySwift")
genDir.copyRecursively(
File(buildDir, "cocoapods/framework/MultiPlatformLibrarySwift"),
overwrite = true
)
}
}
then do build in xcode, cocoapods will run framework compilation, kswift generate sources, then do pod install again to cocoapods see generated sources. after it just run appSK
01/25/2024, 5:02 AMalex009
01/25/2024, 4:19 PMSK
01/25/2024, 4:20 PM