Skip to content

Instantly share code, notes, and snippets.

@kovs705
Created December 28, 2023 12:46
Show Gist options
  • Save kovs705/d0375bcd995ce438ae6011b651856f36 to your computer and use it in GitHub Desktop.
Save kovs705/d0375bcd995ce438ae6011b651856f36 to your computer and use it in GitHub Desktop.
Gradle script for XcodeGen
val generateIos: TaskProvider<Task> by tasks.registering {
if (isFamily(FAMILY_MAC)) {
val xcodeGenPath = "/usr/local/bin/xcodegen"
val specPath = "${project.rootDir}/_____IOS___FOLDER____/Project.yml"
doLast {
exec {
commandLine(xcodeGenPath, "generate", "--spec", specPath)
}
}
} else {
println("Task generateIos skipped, host is not MAC OS")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment