-
-
Notifications
You must be signed in to change notification settings - Fork 9
Installation
Carthage
Manually
Cocoapods
Swift Package Manager
This is an excerpt from the Carthage documentation :
There are multiple options for installing Carthage
-
Installer: Download and run the
Carthage.pkgfile for the latest release, then follow the on-screen instructions. -
Homebrew: You can use Homebrew and install the
carthagetool on your system simply by runningbrew updateandbrew install carthage. (note: if you previously installed the binary version of Carthage, you should delete/Library/Frameworks/CarthageKit.framework).
-
Create a
Cartfilefile at the root of your project folder. -
Add
github "freshOS/Komponents"to your Cartfile -
Run
carthage update -
Drag and drop
Komponents.frameworkandStevia.frameworkfrom/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!
CocoaPods is a dependency manager for Cocoa projects. You can get it with the following command:
$ gem install cocoapodsTo link Komponents into your Xcode project using CocoaPods, add this in your Podfile:
target 'MyAppTarget' # Replace with your target's name
pod 'Komponents'
use_frameworks!Then, run the following command:
$ pod installOpen the project via the myProject.xcworkspace and you're good to go!
- Clone or download the repository
- Copy and paste all the
.swiftfiles from theSourcefolder in your Xcode Project - Link Stevia, which you can find installation steps : here
In your Package.swift file, add the following dependency :
dependencies: [
.Package(url: "https://github.com/freshOS/Komponents.git")
]