Files
AsyncDisplayKit/_docs/installation.md
2016-07-10 16:54:53 -07:00

2.2 KiB
Raw Blame History

title, layout, permalink, prevPage, nextPage
title layout permalink prevPage nextPage
Installation docs /docs/installation.html resources.html intelligent-preloading.html

CocoaPods

AsyncDisplayKit is available on CocoaPods. Add the following to your Podfile:

Ruby
pod 'AsyncDisplayKit'
	

Carthage

AsyncDisplayKit is also available through Carthage. Add the following to your Cartfile:

Carthage
github "facebook/AsyncDisplayKit"
	

Run carthage update in Terminal and to fetch and build the AsyncDisplayKit 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.

Static Library

AsyncDisplayKit can also be used as a regular static library

  1. Copy the project to your codebase manually, adding `AsyncDisplayKit.xcodeproj` to your workspace.
  2. In "Build Phases", add the AsyncDisplayKit Library to the list of "Target Dependencies".
  3. In "Build Phases", add `libAsyncDisplayKit.a`, AssetsLibrary, and Photos to the "Link Binary With Libraries" list.
  4. In "Build Settings", include `-lc++ -ObjC` in your project linker flags.

###Importing AsyncDisplayKit Import the framework header, or create an Objective-C bridging header if you're using Swift:

Objective-C
#import <AsyncDisplayKit/AsyncDisplayKit.h>