Hello!
I want to integrate a target into an iOS project using Compose Multiplatform. I am using
Kotlin version 1.7.20
(Compose Multiplatform does not allow above),
agp version 7.4.0-beta02
. In Gradle, I connected iOS target, locked all platform features on the iOS side. To build the ios module I use the command
./gradlew clean ios:iosDeployIPhone13Debug
As a result, I get an error (shortened version), where almost all project files are listed in Source files:
> Task :common:compileKotlinUikitX64 FAILED
e: Compilation failed: null cannot be cast to non-null type org.jetbrains.kotlin.ir.declarations.IrFunction
* Source files: AppDatabase.kt, AppDatabaseImpl.kt, AccountsEntity.kt, AccountsEntityQueries.kt, CategoriesEntity.kt, CategoriesEntityQueries.kt, CurrencyRatesEntity.kt, CurrencyRatesEntityQueries.kt, G....
I found only this
issue in Google, which is very similar to my mistake, but in my project I checked that there are no expect functions with default values in any file. At the same time, the files that are listed in the Source files do not contain within themselves the code associated with Compose or expect / actual.
How to fix this error? In which direction should I look?