'Have specific scheme to use a specific target

I have an app with a module that contains two schemes, SchemeA and SchemeB. When running SchemeA, it uses a target called FirstTargetA. When running SchemeB, it uses a target called FirstTargetB.

I also have another module in my app which contains two targets: SecondTargetA and SecondTargetB. The only diff between those two are different custom flags.

I have added SecondTargetA as a framework to FirstTargetA and added SecondTargetB to FirstTargetA, but when I run SchemeB, FirstTargetB is actually calling SecondTargetB and I don't understand why. It should even know it as it's not in the General->Frameworks, Libraries and embedded content section.

Can anyone tell me what should I look for? What could I miss?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source