Remove app extension for a certain build configuration

Hi!


We have an iOS app extension (a sticker pack).


We build our different apps (for different markets) from the same code base. They use the same target – different apps are built by separate build configurations. We would like to keep it that way.


How can I include the app extension only in app A and not in app B?


Is there any way to not do the "Embed App Extension" build phase in a certain build configuration? Or can I replace that step with a script somehow (where I'd have more control)?


Regards, Simon

Replies

If you are looking for a script, You can use configure_extensions gem.

Syntax: configure_extensions <mode> <project> <app_target> <extensions...>

Example: configure_extensions add MyApp.xcodeproj MyApp NotificationsUI