Hello! I reported the bug: <https://youtrack.jetbr...
# kotlin-native
p
Hello! I reported the bug: https://youtrack.jetbrains.com/issue/KT-38369 Maybe, someone knows the workaround for the case with the configuration like this:
Copy code
targetFromPreset(presets["iosX64"], "iosX64") { compilations["main"].source(sourceSets["nativeMain"]) }
i.e. when I have the only one sources directory for a lot of different native targets, and when I try to create only one actual class. In this case, there is a really annoying IDE error with the suggestion to create
N
actual declarations instead of the only one.
a
Hello, @Peter Samokhin! Can you try to make all your source sets depend on this nativeMain isntead of this(like
Copy code
```targetFromPreset(presets["iosX64"], "iosX64") {compilations["main"].defaultSourceSet.dependsOn(sourceSets["nativeMain"]) }
), and maybe also set
Copy code
kotlin.mpp.enableGranularSourceSetsMetadata=true
in your gradle.properties?