I'm trying to write an if condition in appdelegate method, There are two targets in my app. The if condition should work only for one target.
#if TEST
var startUrl: String = "http://www.example.com"
#elseif TEST_2
var startUrl: String = "http://www.example2.com"
#endif
TEST and TEST_2 are two targets, and URL will be selected according to the selected target. This is the start url of my app. There is a function after this. I need that function to be executed only if TEST target is running. What do I do?