HomeiOS DevelopmentIntelliJ and Kotlin Multiplatform - "Kotlin Not Configured" warning for iOS supply

IntelliJ and Kotlin Multiplatform – “Kotlin Not Configured” warning for iOS supply


I’m engaged on a Kotlin Multiplatform undertaking that encompasses each an Android and iOS implementation. I’m utilizing the Gradle Kotlin DSL to construct the undertaking. After upgrading to Kotlin 1.8 from 1.6, IntelliJ now shows a yellow warning studying Kotlin not configured above any Kotlin file within the iOS portion of the library. I’m additionally now not ready to make use of code completion within the affected recordsdata.

My construct.gradle.kts reads as follows:

import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework

plugins {
    kotlin("multiplatform") model "1.8.10"
    id("com.android.library")
}

kotlin {
    android()

    val xcf = XCFramework()
    listOf(iosSimulatorArm64(), iosX64(), iosArm64("ios")).forEach {
        it.binaries.framework {
            baseName = "SharedLibrary"
            xcf.add(this)
        }
    }

    sourceSets {
        val commonMain by getting

        val androidMain by getting

        val iosMain by getting
        val iosSimulatorArm64Main by getting
        iosSimulatorArm64Main.dependsOn(iosMain)
        val iosX64Main by getting
        iosX64Main.dependsOn(iosMain)
    }
}

android {
    namespace = "com.instance"
    compileSdk = 32
    defaultConfig {
        minSdk = 27
        targetSdk = 32
    }
}

How can I resolve this warning?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments