https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
i

Ido Flax

10/10/2023, 3:40 PM
I’m building a ktor client plugin targeting jvm, ios and js. locally, the ios jars are built, but not when running on CI (linux) The tasks are disabled with no explanation on CI. do i need to run it on a mac image or install xcode or something?
m

mbonnin

10/10/2023, 3:45 PM
Most likely yes, you'll need a Mac image if you want to run
i

Ido Flax

10/10/2023, 3:46 PM
Interesting, because i can build linux targets on mac
i think the issue is that this is not stated in the build logs
m

mbonnin

10/10/2023, 3:53 PM
Yea, mac can build almost everything else but the opposite isn't true
If you run Gradle with
-i
, you should see
SKIPPED
tasks IIRC
i

Ido Flax

10/10/2023, 7:08 PM
yeah i did that before, it says skipped cause if onlyIf evaluated to false, then after a bunch of debugging i found the onlyIfSpec is just “if enabled”. i think the kotlin plugin should notify when it’s disabling them and why.