https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
f

Francis Mariano

01/27/2021, 6:50 PM
Hi guys. I need to build the shared code to arm32 architecture. So I add the following code in gradle file
Copy code
iosArm32 {
    binaries {
        framework {
            baseName = "shared"
        }
    }
}
After sync the gradle file the tasks to arm32 architecture were enabled. However, the task compileKotlinIosArm32 fails when executed. I noted that the expect/actual was not resolved for shared.iosArm32Main
(Create actual class for module shared.iosArm32Main)
Can any help me?
k

Kris Wong

01/27/2021, 6:56 PM
you need configure the target's source sets to depend on iosMain and iosTest, assuming you have those source sets
f

Francis Mariano

01/27/2021, 7:19 PM
ok, I will try here, tks
Copy code
sourceSets {
    .......
    val iosArm32Main by getting {
        dependsOn(iosMain)
    }
}
BUILD SUCCESSFUL!!!! Tks so much
🍻 3
6 Views