Is it possible to get code completion in the IDE w...
# kotlin-native
s
Is it possible to get code completion in the IDE with c headers? I’m doing the following, but I’m getting no code completion:
Copy code
kotlin {
    android {
        compilations.all {
            kotlinOptions.jvmTarget = "1.8"
        }
        publishAllLibraryVariants()
    }
    ios {
        compilations.all {
            cinterops {
                create("firebasecore") {
                    packageName("cocoapods.FirebaseCore")
                    defFile = File("$projectDir/src/iosMain/c_interop/FirebaseCore.def")
                    includeDirs ("$projectDir/../iosApp/Pods/FirebaseCore/Firebase/Core/Public")
                    compilerOpts ("-F$projectDir/src/iosMain/c_interop/modules/FirebaseCore-6.0.2")
                }
                create("firestore") {
                    packageName("cocoapods.FirebaseFirestore")
                    defFile = File("$projectDir/src/iosMain/c_interop/FirebaseFirestore.def")
                    includeDirs ("$projectDir/../iosApp/Pods/FirebaseFirestore/Firestore/Source/Public", "$projectDir/../iosApp/Pods/FirebaseCore/Firebase/Core/Public")
                    compilerOpts ("-F$projectDir/src/iosMain/c_interop/modules/FirebaseFirestore-1.3.2")
                }
            }
        }
    }
    // ...
}
I got it working after abandoning the
ios()
target. using the platform specific targets and source folders has worked.