I am currently working on a white label app with multiple goals. Each goal is the app for other customers on different developer accounts (that's the only way since Apple changes the policy). Now I want to add a notification content extension. The extension requires to include bundle ID from the parent folder and must be signed. I'd like to use the same expansion target for all of my app targets, so I don't have as many "same" goals.
I can adjust the bundle ID for the extension by using a script in Pre-Action section in the target schema.
However, I do not know how to change DEVELOPMENT_TEAM and CODE_SIGN_IDENTITY to sign the extension with the same layer as the parent app. I tried to use .xcconfig files and set the mentioned variables for each target and include the config files of the extension configuration file. Unfortunately, this does not work.