val iosMain by getting {
dependsOn(commonMain)
iosX64Main.dependsOn(this)
iosArm64Main.dependsOn(this)
iosSimulatorArm64Main.dependsOn(this)
dependencies {
}
}
j
jw
07/21/2023, 3:02 AM
It depends. If you used
ios()
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.
b
brabo-hi
07/21/2023, 3:05 AM
could you please elaborate more, what do you mean by using
ios() to create
j
jw
07/21/2023, 3:05 AM
Copy code
kotlin {
ios()
}
It's a shortcut for defining a few (but not all) of the iOS targets and a shared source set.
b
brabo-hi
07/21/2023, 3:09 AM
this is currently what i have
Copy code
kotlin {
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 {
}
}
}
}