ConsolePrint 0.2.0

ConsolePrint 0.2.0

Maintained by MainasuK, MainasuK.



  • By
  • CMK

ConsolePrint

CI Status Version License Platform

This idea come from here. Has been used for many years and I decided to open source it.

Installation

…
pod 'ConsolePrint'# Enable ConsolePrint manually. Default not print anything
post_install do |installer|
  installer.pods_project.targets.each do |target|
      if ['ConsolePrint'].include? target.name
          target.build_configurations.each do |config|
              if config.name == "Debug"
                  config.build_settings['SWIFT_ACTIVE_COMPILATION_CONDITIONS'] += "ConsolePrint"
              end
          end
      end
  end
end

Usage

// e.g.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    consolePrint("Hello, World!")
    return true
}

// ^ AppDelegate.swift[36], application(_:didFinishLaunchingWithOptions:): Hello, World!