In response to this question, the question deepens about how to create custom configurations and flags. This is not perfect, but it works.
Look for an option that will be more permanent and compatible with the cross project, without wasting time at the beginning of each project to install it.
iOS detect ad-hoc from code
source share