Open ln-12 opened 3 years ago
You can't mix explicit framework config and cocoapods config.
ios {
binaries {
framework { //You can't use this and cocoapodsext in the same config
baseName = "shared"
}
}
}
version = "1.0"
cocoapodsext {
summary = "Common library for the KaMP starter kit"
homepage = "https://github.com/touchlab/KaMPKit"
pod("SQLCipher", "~> 4.0")
framework {
isStatic = true
transitiveExport = true
}
}
And what would you suggest do? Which changes do I have to make to the default KMM temaple? As mentioned above, leaving out the explicit block leads to the error Key debugFramework is missing in the map.
in the packForXcode
section. If I comment out the section, the error becomes Task 'packForXCode' not found in project ':shared'.
.
For now I fixed it by copying the kampkit ios files into my project and then copied my UI files in the kampkit folder. So it seems like there has to be done some config in the XCode files, but I can't see which.
I am trying to integrate SQLDelight together with SQLCipher into my existing Kotlin Multiplatform Mobile project. I am now stuggling with the correct configuration. My
shared
build.gradle.kts
looks the following:This config leads to the error
Cannot create binary debugFramework: binary with such a name already exists
. When I comment outbinaries
block insideios {}
, the error isKey debugFramework is missing in the map.
What am I doing wrong? Could you provide me a correct config?