Joffrey
09/10/2021, 10:52 PMmingwX64
target:
tasks.withType<org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeTest> {
environment("SOME_VAR", "some value")
}
But for some reason those are not passed when running iOS tests. Does this have to do with the fact that iOS tests run in a simulator and therefore likely start a separate process? Is there any way to pass environment variables to that other process, then?
(Note that in reality I'm setting environment()
in a nested doFirst { }
block because I need execution time information, but the problem occurs as well even without this peculiarity so I simplified the example)Joffrey
09/11/2021, 8:34 PMSIMCTL_CHILD_
prefix.
Name a variable SIMCTL_CHILD_MYVAR
and its value will be passed by simctl
to the emulator as the environment variable MYVAR
.