Hey guys! We’re using the
ios()
target shortcut inside the
kotlin {…}
block in
build.gradle.kts
to create iOS targets for simulator and device and use the same
iosMain
source set. However, the dependencies of the iOS target do not get resolved correctly in the IDE (specifically speaking, the
Platform
object, or SQLDelight’s
NativeSqliteDriver
).
If hierarchical project structure is disabled - e.g.
gradle.properties
does not include
kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false
, then the project builds anyway even if the IDE can’t resolve the classes. If I add those two lines, the build fails too. This is happening on Kotlin 1.4.10 and 1.4.20.
Does anyone know what’s the problem or where should I open an issue? Thanks lots!