Miguel Fermin
09/23/2019, 9:34 PMiostarget to be set to iosX64.
val iOSTarget: (String, KotlinNativeTarget.() -> Unit) -> KotlinNativeTarget =
if (System.getenv("SDK_NAME")?.startsWith("iphoneos") == true)
::iosArm64
else
::iosX64Artyom Degtyarev [JB]
09/24/2019, 11:05 AMMiguel Fermin
09/24/2019, 11:32 AMSDK_NAME from the xcode environment. If I hardcode one or the other (iosArm64 or iosX64) I'm able to build either on the simulator or device.
This is the line that fails:
System.getenv("SDK_NAME")
And here's the block that sets the target:
//select iOS target platform depending on the Xcode environment variables
val iOSTarget: (String, KotlinNativeTarget.() -> Unit) -> KotlinNativeTarget =
if (System.getenv("SDK_NAME")?.startsWith("iphoneos") == true)
::iosArm64
else
::iosX64
iOSTarget("ios") {
binaries {
framework {
baseName = "SharedCode"
}
}
}Artyom Degtyarev [JB]
09/24/2019, 12:31 PMSystem.getenv("SDK_NAME")?Miguel Fermin
09/24/2019, 1:54 PMcorneil
09/25/2019, 5:38 PMjs() without nodejs {} or browser {} will have this effect