Mejdi
04/07/2021, 2:08 PMMejdi
04/07/2021, 2:41 PMMejdi
04/07/2021, 3:20 PMiosX64Main and iosArm64Main source sets.
You can still use other iOS actulation implementations as part of iosMain.
As per the docs we need to define the dependencies btw source sets like this:
val iosX64Main by sourceSets.getting
val iosArm64Main by sourceSets.getting
val iosMain by sourceSets.creating {
dependsOn(commonMain)
iosX64Main.dependsOn(this)
iosArm64Main.dependsOn(this)
}
And instead of defining your iOS package dependency as part of ios() target shortcut, we need to have to split targets: iosArm64 and iosX64.
Before getting compiler to recognize your iOS package you need to first build the project.