Control Action Extension visibility programatically

I want to control the visibility of Action Extension programatically (kind of A/B testing).

Is it possible to control it via code? [i.e control the "Embed App Extension" in build phases part in code]



Control Action Extension visibility programatically
 
 
Q