louiscad
06/11/2019, 9:35 PMiosX64 and iosArm64?ribesg
06/12/2019, 8:38 AMribesg
06/12/2019, 8:39 AMlouiscad
06/12/2019, 1:54 PMiosMain?
- The IDE recognizes everything properly?
- Would it work if I added a macOS target where the API is shared across these platforms?ribesg
06/12/2019, 2:22 PMribesg
06/12/2019, 2:24 PMiosSimMain -> iosMain symlink because there is no “common but iOS” sourceSet type yet, not sure how that will change in the future.louiscad
06/13/2019, 12:03 AMiosArm64 target looks for sources into iosMain?ribesg
06/13/2019, 7:13 AMiosOldAsFuck in the Gradle file and just put another simlinkmsink
06/13/2019, 7:20 AMsourceSets["${targetName}Main"].apply {
kotlin.srcDir("src/iosMain/kotlin")
}ribesg
06/13/2019, 7:33 AMlouiscad
06/13/2019, 8:14 PMlouiscad
06/13/2019, 8:16 PMlouiscad
06/13/2019, 10:09 PM00:01 Duplicate content roots detected: Path [/Users/louiscad/Documents/GitHub/Splitties/modules/preferences/src/iosMain/kotlin] of module [preferences_iosArm32Main] was removed from modules [preferences_iosArm32Test, preferences_iosArm64Main, preferences_iosArm64Test, preferences_iosX64Main, preferences_iosX64Test]I call this function from the
kotlin lambda in `build.gradle.kts`:
fun KotlinMultiplatformExtension.setupIosSourceSets() {
sourceSets.matching { it.name.startsWith("ios", ignoreCase = true) }.all {
kotlin.srcDir("src/iosMain/kotlin")
}
}
After that, when I add an actual declaration to the iosMain directory, it removes the error for missing actual for iosArm32, but keeps the error for iosX64 and iosArm64.
Did you have this problem too, or did you find a workaround?louiscad
06/13/2019, 10:18 PMmsink
06/13/2019, 11:18 PMlouiscad
06/14/2019, 1:06 AMribesg
06/14/2019, 8:01 AM