قالب وردپرس درنا توس
Home / IOS Development / How do you use an app extension (notification content / service) for multiple goals? : iOSProgramming

How do you use an app extension (notification content / service) for multiple goals? : iOSProgramming



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.

Does anyone know how to dynamically set the required variables for each parent app to sign the app and extension with the same account?


Source link