Krystian
12/14/2023, 6:33 PMrunDebugExecutableMacosArm64
or runReleaseExecutableMacosArm64
, it will flat-out reject it and skip the task. However, the executable has built fine and runs when ran manually?
Is there something I'm doing wrong? I will share my code in thread Or is this a known issue?Krystian
12/14/2023, 6:34 PM> Task :checkKotlinGradlePluginConfigurationErrors
> Task :cinteropSdl2MacosArm64 UP-TO-DATE
> Task :compileKotlinMacosArm64 UP-TO-DATE
> Task :xcodeVersion UP-TO-DATE
> Task :linkReleaseExecutableMacosArm64 UP-TO-DATE
> Task :runReleaseExecutableMacosArm64 SKIPPED
It will be skipped.
My build.gradle.kts
looks like this:
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
plugins {
kotlin("multiplatform") version "2.0.0-Beta1"
}
group = "me.user"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
kotlin {
linuxX64()
macosX64()
macosArm64()
mingwX64()
applyDefaultHierarchyTemplate()
targets.withType<KotlinNativeTarget> {
compilations["main"].cinterops {
create("sdl2")
}
binaries {
executable {
entryPoint = "main"
}
}
}
}
And yes, project builds fine and executable runs fine, but the running of the file is skipped by gradle? Is this known issue on apple silicon?
(Sorry if the build.gradle.kts looks like dogshit, I'm still confused about the hierarchical structure... But they stuff works... Sort of?)Chris Lee
12/14/2023, 9:15 PMSystem.getProperty("os.arch")
to confirm.Krystian
12/14/2023, 9:39 PMChris Lee
12/14/2023, 9:40 PM