brabo-hi
07/21/2023, 2:43 AMdependsOn(commonMain) in the iosMain block ?
something like
val iosMain by getting {
dependsOn(commonMain)
iosX64Main.dependsOn(this)
iosArm64Main.dependsOn(this)
iosSimulatorArm64Main.dependsOn(this)
dependencies {
}
}jw
07/21/2023, 3:02 AMios() to create then no. If you created it yourself the traditional way then yes. If you created it yourself using the new target hierarchy DSL then no.brabo-hi
07/21/2023, 3:05 AMios() to createjw
07/21/2023, 3:05 AMkotlin {
ios()
}
It's a shortcut for defining a few (but not all) of the iOS targets and a shared source set.brabo-hi
07/21/2023, 3:09 AMkotlin {
iosX64()
iosArm64()
iosSimulatorArm64()
android {}
cocoapods {}
sourceSets {
val commonMain by getting {}
val androidMain by getting {}
val iosX64Main by getting
val iosArm64Main by getting
val iosSimulatorArm64Main by getting
val iosMain by getting {
dependsOn(commonMain)
iosX64Main.dependsOn(this)
iosArm64Main.dependsOn(this)
iosSimulatorArm64Main.dependsOn(this)
dependencies {
}
}
}
}jw
07/21/2023, 3:09 AMiosMain source set there. Change getting to creating.brabo-hi
07/21/2023, 3:20 AMPamela Hill
07/21/2023, 7:18 AM