0 votes
48 views
asked by (8.2k points)

Hi all  

#if DEBUG
static NSString *const API_KEY = @"KEY_A";
#else
static NSString *const API_KEY = @"KEY_B";
#endif


Not working properly in swift.

1 Answer

0 votes
answered by

Hi    

Try the below level settings changes

  • Open Build Settings for your target
  • Search for "other swift flags"
  • Add the macros you wish to use, preceded by the -D flag

Categories

...