0

I am building an XCode project where I have to add a dependency target B_Debug or B_Release for my target A i.e. A depends on B. My target A can have Debug and Release configurations. I have two different targets for B - B_Debug and B_Release. I want that when the user selects Release configuration for target A then B_Release should be built and likewise for Debug configuration. However, In XCode, I don't have the option to add separate dependencies based on the configuration for the same target in Build Phases. Is there a way to achieve this?

enter image description here

i.e. How to add different dependencies for different configurations in the above place?

Vivek Mangal
  • 532
  • 1
  • 8
  • 24

0 Answers0