Files
AsyncDisplayKit/_docs/installation.md

36 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Installation
layout: docs
permalink: /docs/installation.html
next: references.html
---
###CocoaPods
ASDK is available on <a href="http://cocoapods.org">CocoaPods</a>. Add the following to your Podfile:
```objective-c
pod 'AsyncDisplayKit'
```
ASDK can also be used as a regular static library:
Copy the project to your codebase manually, adding `AsyncDisplayKit.xcodeproj` to your workspace. Add `libAsyncDisplayKit.a`, AssetsLibrary, and Photos to the "Link Binary With Libraries" build phase. Include `-lc++ -ObjC` in your project linker flags.
Import the framework header, or create an <a href="https://developer.apple.com/library/ios/documentation/swift/conceptual/buildingcocoaapps/MixandMatch.html">Objective-C bridging header</a> if you're using **Swift**:
```objective-c
#import <AsyncDisplayKit/AsyncDisplayKit.h>
```
###Carthage
ASDK is available through <a href="https://github.com/Carthage/Carthage">Carthage</a>. Add the following to your Cartfile:
```objective-c
github "facebook/AsyncDisplayKit"
```
Run carthage update in Terminal and to fetch and build the ASDK library. This will create a folder named Carthage in your apps root folder. In that folder there will be a Build folder from where you have to drag the frameworks you want to use into the “Linked Frameworks and Libraries” section in Xcode.
Learn more about <a href="https://github.com/Carthage/Carthage/blob/master/README.md">Carthage</a>.