Adding new iCloud Container when we have already one

My app is live on App Store, There is already a iCloudContainer with my app identifier. I want to add another iCloundContainer on same app identifier. Will it effect my live app?

When I am trying to edit identifiers(adding a new iCloud Container with other one already exist), It is showing "Adding or removing any capabilities will invalidate any provisioning profiles that include this App ID and they must be regenerated for future use."

Please let me know if it effect my live application...

Answered by DTS Engineer in 849955022

Adding a new iCloud container should not impact the app that is already shipped.

Maybe worth mentioning, when using multiple containers, your code may need to be clear what container you would load. For example, you might want to specify the container identifier when creating a CKContainer

// let container = CKContainer.default
// let container = CKContainer(identifier: <The_target_container>)

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Adding a new iCloud container should not impact the app that is already shipped.

Maybe worth mentioning, when using multiple containers, your code may need to be clear what container you would load. For example, you might want to specify the container identifier when creating a CKContainer

// let container = CKContainer.default
// let container = CKContainer(identifier: <The_target_container>)

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Adding new iCloud Container when we have already one
 
 
Q