I am creating an application using the Swift Package Manager, and I need to know in what configuration the project was built, i.e. Debugor Release. I try to stay away from using the file .xcodeproj. Please let me know if possible. I will insert a simple example below, but just know if there is a better way to handle the configuration, besides the code below, please send as an answer.
Example:
#if DEBUG
print("Im in Debug!!")
#else
print("Im in Release!!")
#endif
source
share