I am trying to use different environments for my application but facing issues doing it.
It's not the case that debug
is not working the case is none of the variables are working.
I am attaching a screenshot which will make it easier to understand what is happening.
I am not able to access any of the environments.
I ran this code in viewDidLoad
of initial view controller of my application and last else
condition gets executed.
#if DEBUG
print("Environment is debug")
#elseif debug
print("Environment is debug")
#elseif Debug
print("Environment is Debug")
#elseif RELEASE
print("Release")
#elseif PRODUCTION
print("Environment is production")
#elseif PROD
print("Environment is PROD")
#else
print("Environment is can't find")
#endif
Adding few more images for better clarity regarding schemes and Xcode settings.