Hi everyone, I’m trying to setup a workflow to dep...
# github-workflows-kt
k
Hi everyone, I’m trying to setup a workflow to deploy my KMM iOS app. But it’s fail when doing
xcodebuild clean archive
comman, it failed to execute the run script. Do I need to setup something related with Java or gradle on my step?
whoops I think this is not the right place to discuss about this?
n
i guess you are not having problems generating the github-actions yaml stuff ? thats the focus of the project
i would suggest to add a few runsteps before your failing one to see what software like xcode and what versions are available.. setting up jdk of the right version is also a good idea.. if gradle fails otherwise.. no idea i don't to apple stuff myself
also .. gradle scans are very useful in telling you what when wrong in CI.. put this in your settings.gradle.kts:
Copy code
plugins {
    id("com.gradle.enterprise") version "3.8.1"
}

// <https://dev.to/jmfayard/the-one-gradle-trick-that-supersedes-all-the-others-5bpg>
gradleEnterprise {
    buildScan {
        // uncomment this to scan every gradle task
		publishAlways()
        termsOfServiceUrl = "<https://gradle.com/terms-of-service>"
        termsOfServiceAgree = "yes"
        buildScanPublished {
            file("buildscan.log").appendText("${java.util.Date()} - $buildScanUri\n")
        }
    }
}
k
Thanks for the insight @Nikky. 🙏