Distributing release build using CloudKit dev environment

Hello,

I am building an multiplatform app for iOS and macOS that uses CloudKit. I want give prerelease versions of my app to testers in my team. I want those builds to use the CloudKit development environment, as some of the schema is still experimental and subject to breaking changes. However, when I distribute my app via TestFlight, the iCloud container environment is automatically set to production, even though in my entitlements file I've set the iCloud container environment to development. I also tried the 'Release Testing' distribution method, but also with this option the container environment is overridden and set to production.

Does anyone know how I can distribute a release build for internal testing that uses the CloudKit development environment?

For context, I'm using Xcode 26.6.

Distributing release build using CloudKit dev environment
 
 
Q