Ruslan Iusupov
04/06/2022, 11:00 AMdomain_facade
framework, but links MyDomainLogic
. For the test project as expected creates MyDomainLogic
framework and links MyDomainLogic
. My current workaround is just setting cocoapods.name
and framework.baseName
to domain_facade
.
Also in the main project I get strange runtime exception kotlin.ClassCastException: kotlin.String cannot be cast to kotlin.String
. It happens in co.touchlab.sqliter.DatabaseFileContext.kt
on line 39 https://github.com/touchlab/SQLiter/blob/286784f503f414efd88679362ddac47222b7110f/sqliter-driver/src/appleMain/kotlin/co/touchlab/sqliter/DatabaseFileContext.kt#L39
Again in the test project works without problems.
Do you have any ideas?Ruslan Iusupov
04/06/2022, 11:01 AM// domain/domain-facade/build.gradle.kts
cocoapods {
name = "MyDomainLogic"
summary = "Domain logic"
homepage = "Link to a Kotlin/Native module homepage"
ios.deploymentTarget = "10.0"
podfile = project.file("../../iosApp/Podfile")
framework {
baseName = "MyDomainLogic"
export(project(":domain:domain-core"))
export(project(":utils"))
export(project(":coroutinesinterop"))
export(deps.kotlin.datetime)
embedBitcode(BITCODE)
linkerOpts += "-lsqlite3"
}
xcodeConfigurationToNativeBuildType["CUSTOM_DEBUG"] = NativeBuildType.DEBUG
xcodeConfigurationToNativeBuildType["CUSTOM_RELEASE"] = NativeBuildType.RELEASE
}
Rick Clephas
04/07/2022, 6:42 AMAlso in the main project I get strange runtime exceptionAre you by any chance using multiple KMM frameworks in your iOS project?.kotlin.ClassCastException: kotlin.String cannot be cast to kotlin.String