Installation

The SwiftyBeaver Logging Framework can be installed on every Apple device and Swift 2 & Swift 3 using the installation tool of your choice.  

  • For Swift 3 install the latest SwiftyBeaver version
  • For Swift 2 install SwiftyBeaver 0.7.0

Supported Platforms & Installation Tools


iOS8+ OSX 10.9+ watchOS 2+ tvOS9+
Swift Package Manager
Carthage
CocoaPods
Download

Installation via Swift Package Manager

For Swift Package Manager and Swift 3 add the following package to your Package.swift file:

.Package(url: "https://github.com/SwiftyBeaver/SwiftyBeaver.git")

Installation via Carthage

You can use  Carthage to install SwiftyBeaver under Swift 3 by adding that to your Cartfile:

github "SwiftyBeaver/SwiftyBeaver"

for Swift 2:

github "SwiftyBeaver/SwiftyBeaver" ~> 0.7

Installation via CocoaPods

To use  CocoaPods with Swift 3 add this to your Podfile:

pod 'SwiftyBeaver'

for Swift 2:

target 'MyProject' do
  use_frameworks!

  # Pods for MyProject
  pod 'SwiftyBeaver', '~> 0.7'
end

post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    # Configure Pod targets for Xcode 8 with Swift 2.3
    config.build_settings['SWIFT_VERSION'] = '2.3'
  end
end

Installation via Download

You can download & embed SwiftyBeaver Framework in your project with these 3 simple steps:

  1. Download the latest release zip from here
  2. Drag & drop the /sources folder into your project (make sure "Copy items if needed" is checked)
  3. Rename the "sources" group to "SwiftyBeaver" if you'd like

Note: You don't have to  import SwiftyBeaver if you install this way.

Still need help? Contact Us Contact Us