in my project I have code surrounded by marks of DEBUG mode #if DEBUG
like this:
#if DEBUG
let goToMainScreensGesture = UITapGestureRecognizer(target: self, action: #selector(navigateToMainStoryboard(_:)))
goToMainScreensGesture.delegate = self
goToMainScreensGesture.numberOfTapsRequired = 2
logoLargeImageView.isUserInteractionEnabled = true
logoLargeImageView.addGestureRecognizer(goToMainScreensGesture)
#endif
But that does not work, is there another alternative to add my own debug mode?
On TestFlight, Apple is automatically moving Debug mode apps to Release mode. I need to add my own global debug mode to the app for the debugging features to work.
What is the best practices on how to do this right?