Debugビルド時に出力していたprint
によるログは、Releaseビルド時には垂れ流したくない...
import UIKit
func print(_ items: Any..., separator: String = " ", terminator: String = "\n") {
#if DEBUG
let output = items.map { "\($0)" }.joined(separator: separator)
Swift.print(output, terminator: terminator)
#endif
}
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
// ...省略...
}
これでOK!