Skip to content

Installation

S4cha edited this page May 8, 2017 · 9 revisions

Installation

For the time being Carthage is the preferred way to install Komponents.

Carthage
Manually
Cocoapods
Swift Package Manager

Carthage

Not using Carthage yet ?

This is an excerpt from the Carthage documentation :

There are multiple options for installing Carthage

  • Installer: Download and run the Carthage.pkg file for the latest release, then follow the on-screen instructions.

  • Homebrew: You can use Homebrew and install the carthage tool on your system simply by running brew update and brew install carthage. (note: if you previously installed the binary version of Carthage, you should delete /Library/Frameworks/CarthageKit.framework).

Carthage already installed

  • Create a Cartfile file at the root of your project folder.

  • Add github "freshOS/Komponents" to your Cartfile

  • Run carthage update

  • Drag and drop Komponents.framework and Stevia.framework from /Carthage/Build/iOS/ to Linked frameworks and libraries in Xcode (Project>Target>General>Linked frameworks and libraries)

  • Add new run script (Project>Target>Build Phases>+> New run script phase) /usr/local/bin/carthage copy-frameworks

  • Add Input files $(SRCROOT)/Carthage/Build/iOS/Komponents.framework

  • Add Input files $(SRCROOT)/Carthage/Build/iOS/Stevia.framework

There you go!

Manually

  • Clone or download the repository
  • Copy and paste all the .swift files from the Source folder in your Xcode Project
  • Link Stevia, which you can find installation steps : here

Cocoapods

Coming soon

Swift Package Manager

Coming Soon

Clone this wiki locally