Did anyone manage to get XCode Cloud to build succ...
# ios
r
Did anyone manage to get XCode Cloud to build successfully? I did the following: 1. added a
ci_post_clone.sh
script which just has a
brew install openjdk@17
inside 2. added a
JAVA_HOME
environment property which points to the installation dir 3. added
--stacktrace
to the Kotlin compile build step (just to get the stacktrace) It's failing with this error:
Copy code
Caused by: java.lang.UnsupportedOperationException
	at com.google.common.collect.ImmutableMap.put(ImmutableMap.java:781)
	at Build_gradle$2.execute(build.gradle.kts:37)
	at Build_gradle$2.execute(build.gradle.kts:35)
	at org.gradle.internal.code.DefaultUserCodeApplicationContext$CurrentApplication$1.execute(DefaultUserCodeApplicationContext.java:122)
I do not see anything working with any maps in this file, so I am about to give up, so just wondering if anyone has any hint or managed to get it working 🙂
c
Uhmmm. Even if you get it to work, We’ve had issues with
kotlinx.serialization
. Some data classes annotated with it were not processed properly by the plugin. So we experienced crashes in production, we didn’t really investigate it though.
👍 1
😞 1
r
Thank you. Hopefully someone from JB can take a crack at it sometime.
j
Wouldn’t having to install Java on each run take a huge amount of time to the point it’s practically unusable even if someone got it to work?
r
You could check if it's already installed. I'm not doing this right now and also I might be missing something because it seems the runner machine clears that userdata so on the next run java isn't installed anymore for me. But either way 20 seconds is something I'm willing to wait for if it were to work otherwise.
j
Ah if it’s only 20 seconds then yeah that’s fine, though it would be at minimum multiple minutes to download and install