I am developing an iOS application and I have two projects (two clients). I have created a second targets by duplicating the first one, my question how I can test if I am in targetX / targetY ? What are the best practice when developing an iOS applications with multiple targets.
I am developing an iOS application and I have two projects ( two clients
Share
I do not know if this is best practice, but one way to do this is to add an Other C Flag in the target’s build settings (see image). For example:
Target A:
Target B:
And then in code you can check for this define: