xcode cloud: Unresolved reference 'Res'. I have tr...
# multiplatform
o
xcode cloud: Unresolved reference 'Res'. I have tried all I could to build my compose multiplatform iosapp on xcode cloud to no avail. The Res resource class are somehow not being generated. But in the logs I see that this class is executed. > Task sharedgenerateComposeResClass Locally, everything builds fine. What could be the issue? has anyone encountered this before?
So I managed to get a green after trying different things. I even converted the project from cocoapods to spm but that didn't help. What I think helped in the end was specifying the compose resources package explicitly and generate always like so
Copy code
compose.resources {
    packageOfResClass = "com.company.shared.resources"
    generateResClass = always
}
And added this to the pos_clone script
Copy code
./gradlew :shared:compileKotlinIosArm64
By the way here is my ci_post_clone.sh script
Copy code
#!/bin/bash

REPO_DIR=$CI_PRIMARY_REPOSITORY_PATH

curl -s "<https://get.sdkman.io?ci=true&rcupdate=false>" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java 21.0.8-amzn

export JAVA_HOME=/Users/local/.sdkman/candidates/java/current

cd "$REPO_DIR"

./gradlew :shared:compileKotlinIosArm64

# store_cache_files # Store caches after build

echo "--- ci_post_clone.sh finished ---"