xcode swift print 디버그 모드일때만 동작하게 하기
Under what circumstances?Under Xcode 12.2With Swift5How to do?It's very simple way to be disable print function.If you are developing using Swift, it doesn't matter which swift file. Please insert the code below. In my case, I inserted it at the top of the AppDelegate.import UIKitimport CoreData...func print(_ items: Any...) { #if DEBUG Swift.print(items[0]) #endif}@UIApplicationMai..
2021.03.25