官方网站地址:https://github.com/CocoaDebug/CocoaDebug
因为网络原因,建议访问 https://gitee.com/nick5683/CocoaDebug
pod'CocoaDebug', :git => 'https://gitee.com/nick5683/CocoaDebug', :configurations => ['Debug']
//Step 1.
#if DEBUG
import CocoaDebug
#endif
//Step 2.
#if DEBUG
CocoaDebug.enable()
#endif
//Step 3.
public func MYLog<T>(file: String = #file, function: String = #function, line: Int = #line, _ message: T, color: UIColor = .white) {
#if DEBUG
print(message)
#endif
}
网友评论