from the reference How to handle multiple targets in XCode using swift language? and https://www.appcoda.com/using-xcode-targets/
I have created three targets, each target having different bundle ids and app icons. I have also added different flag to the "Other swift flags" - > Custom swift flag section
like
for first target I added "-DGOLD" , for second target I added "-DSILVER" and for third target I added "-DPLATINUM".
In the AppDelegate I wrote a code
#if GOLD
print ("Gold")
#elseif SILVER
print ("Silver")
#else
print ("Platinum")
#endif
FYI, I am using Xcode 8.3
I tried to run the first target, I always getting "Platinum". Please provide me how to get the flags correctly