I was able to get it to work by doing two things.
Forward the environment variables in your scheme
Copy the Xcode Cloud variables to the environment in ci_pre_xcodebuild.sh
Perhaps if I use $($CI) in the scheme you don't need step #2, but I haven't tested it.
I was able to get it to work by doing two things.
Forward the environment variables in your scheme
Copy the Xcode Cloud variables to the environment in ci_pre_xcodebuild.sh
Perhaps if I use $($CI) in the scheme you don't need step #2, but I haven't tested it.