nevardreik
01/25/2022, 4:43 AM1.5.21
-> 1.5.30
… The issue im experiencing is specifically with packForXcode
where Gradle is returning an error messae all of a sudden
* What went wrong:
Could not create task ':mobile-shared:packForXcode'.
> Key releaseFramework is missing in the map.
I have had a look around online first for solutions, but really can’t see any resolutions or hints to point me in the right direction. Anyone have any ideas? I’ll post my packForXcode
task as a thread comment.nevardreik
01/25/2022, 4:43 AMval packForXcode by tasks.creating {
dependsOn(deleteXcFramework)
group = "build"
val mode = "Release"
val frameworks = arrayOf("iosArm64", "iosX64")
.map { kotlin.targets.getByName<KotlinNativeTarget>(it).binaries.getFramework(mode) }
inputs.property("mode", mode)
dependsOn(frameworks.map { it.linkTask })
doLast {
buildXcFramework(frameworks)
}
}
Nilay Dağdemir
01/25/2022, 12:18 PM