Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.57 KB

installation.md

File metadata and controls

58 lines (39 loc) · 1.57 KB

Installation

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

CocoaPods 1.1+ is required to build Evil 0.9+.

To integrate Evil into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'Evil'
end

Then, run the following command:

$ pod install

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate Evil into your Xcode project using Carthage, specify it in your Cartfile:

github "evilgix/evil" ~> 0.9

Run carthage update to build the framework and drag the built Evil.framework into your Xcode project.

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It is in early development, but Evil does support its use on supported platforms.

Once you have your Swift package set up, adding Evil as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/evilgix/Evil.git", from: "0.9.0")
]