Each extension is a separate goal, as a host application. For example, if you have 3 extensions, you will need 4 package identifiers, each of which includes a host application, and 4 preparation profiles for each of them.
Each target has its own set of settings, so if the host application and extensions support CloudKit, you need to enable CloudKit for each application identifier.
Just treat them as separate applications.
source share