I want to implement in my code “fatalError()” as per this article: https://cocoacasts.com/what-is-fatalerror-in-swift-and-whe…/.
I would like to know if there is a way when you run your code on “release” instead of “debug”, XCode gives you an error that you have “fatalError()” function in your code. “fatalError()” is just an example. I may want to give me the same error if I forgot to take out some random UIAlertController or something else that was meant just for development and testing.
So, some customizable solution to not let me build in release if I have *blank* in my code.
Thank you!