Does anyone have a decent way of running `xcodebui...
# kotlin-native
a
Does anyone have a decent way of running
xcodebuild
as a task from Gradle? I’ve got a suite of Swift tests that consume my KMP artifact, and I’d like to include them as a dependency of my
check
or
test
tasks, and have them run as part of a Gradle continuous build
r
Can you just call it from a custom gradle task and make the check task depend on it?
something like
Copy code
exec {
  commandLine("xcodebuild", "arg1", "arg2")
}
inside a task action
a
Yeah that’s what I’m currently doing - just figured there could be a preexisting gradle plugin that might’ve provided a real DSL :)