Lars Toft Jacobsen
09/02/2021, 9:10 AMiosX64("ios") {
binaries {
framework()
}
}
plus sourcesets, and implemented a few expected types. All compilation tasks run successfully but the linkReleaseFrameworkIos
always fails with a Java assertion error somewhere in the native compiler with zero hints to actual cause. Link debug framework succeeds for iosX64 but will likewise also fail for iosArm64. I deliberately chose one of the stand-alone modules as to not also deal with dependency issues. Any pointer to how I should approach this problem is greatly appreciated 🙏 Searching the docs didn’t yield much in terms of debugging compilations issues. Thanks.
Slack ConversationLuis
09/02/2021, 12:38 PMLuis
09/02/2021, 12:41 PMbinaries.framework
unless you want to customize it (by changing its name for example)Luis
09/02/2021, 12:41 PMLars Toft Jacobsen
09/02/2021, 12:51 PMbinaries.framework
- I had been playing around with setting the baseName and left it there.Lars Toft Jacobsen
09/02/2021, 12:51 PMLuis
09/02/2021, 1:36 PMSDK_NAME
variable, so I can build stuff for the iOS simulator
val iosTarget: (String, KotlinNativeTarget.() -> Unit) -> KotlinNativeTarget = when {
System.getenv("SDK_NAME")?.startsWith("iphoneos") == true -> ::iosArm64
else -> ::iosX64
}
iosTarget("ios") {}
Maybe you could have an issue with that?Luis
09/02/2021, 1:37 PMLars Toft Jacobsen
09/02/2021, 2:02 PMLars Toft Jacobsen
09/02/2021, 2:03 PM