CloudKit container not choosable in Capabilities

This app has had CloudKit for a long time, have done at least 30 releases with it. Started new Xcode today (11.5) and first the upload failed with a complaint about provisioning, then when I went to capabilities, I turned CloudKit off and on and when I turned it on again, it lists 3 containers but not the one the app has been using.