Xcode cloud -

Hello,

I'm trying to run Xcode Cloud but it fail building with this error, any ideas how to install java in the Xcode Cloud server?

The operation couldn’t be completed. Unable to locate a Java Runtime. 

Command PhaseScriptExecution failed with a nonzero exit code

Command exited with non-zero exit-code: 65

An internal error was detected which caused this stage to error. The error has been logged, and you can re-run this build again.

I didn't think Xcode supported java? I thought it was only C, and apple languages - Objective C, Swift, SwiftUI no?

As software developer I want to build my Kotlin Multiplatform app in Xcode Cloud.

The only option I found right now is to install JDK on every build with homebrew, like this:

ci_post_clone.sh:

#!/bin/sh
brew analytics off && brew install openjdk

But I it is slow. I want JDK to be pre-installed

Xcode cloud -
 
 
Q