Skip to content
This repository has been archived by the owner on Jun 2, 2018. It is now read-only.

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
zwaldowski committed Dec 30, 2013
1 parent 0cc231f commit ce0c59a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Expand Up @@ -3,29 +3,32 @@

Blocks in C and Objective-C are downright magical. They make coding easier and potentially quicker, not to mention faster on the front end with multithreading and Grand Central Dispatch. BlocksKit hopes to facilitate this kind of programming by removing some of the annoying - and, in some cases, impeding - limits on coding with blocks.

BlocksKit is a framework for OS X Lion and newer and a static library for iOS 5 and newer.
BlocksKit is a framework for OS X Mountain Lion and newer and a static library for iOS 6 and newer.

Installation
============

BlocksKit can be added to a project using [CocoaPods](https://github.com/cocoapods/cocoapods). We also distribute a static library build.
BlocksKit can be added to a project using [CocoaPods](https://github.com/cocoapods/cocoapods). One may also use targets included in the project.

### Library

* Download a release of BlocksKit.
* Download [libffi](https://github.com/pandamonia/libffi-iOS/archive/master.zip) and extract contents to BlocksKit/libffi/
* Run "Archive" in XCode.
* By default the static library will be compiled to `~/Library/Developer/Xcode/DerivedData`.
* Move libBlocksKit.a and Headers to your project's folder, preferably a subfolder like "Vendor".
* In "Build Phases", Drag libBlocksKit.a into your target's "Link Binary With Libraries" build phase.
* In the build settings of your target or project, change "Other Linker Flags" to `-ObjC -all_load`. Make sure your app is linked with CoreGraphics, Foundation, MessageUI, and UIKit.
* In the build settings of your target or project, change "Other Linker Flags" to `-ObjC`. Make sure your app is linked with CoreGraphics, Foundation, MessageUI, and UIKit.
* Change (or add) to "Header Search Paths" the relative path to BlocksKit's headers, like `$(SRCROOT)/Vendor/Headers`.
* Insert `#import <BlocksKit/BlocksKit.h>` in your project's prefix header.

### Framework

See the included `Configurations/MacBundleFramework.xcconfig` for more information.

Documentation
=============

An Xcode 4 compatible documentation set is available [using this Atom link](http://pandamonia.github.io/BlocksKit/us.pandamonia.BlocksKit.atom). You may also view the documentation [online](http://pandamonia.github.io/BlocksKit/Documentation).
An Xcode 4+ compatible documentation set is available [from CocoaDocs](http://cocoadocs.org/docsets/BlocksKit/2.0.0/).

License
=======
Expand Down

0 comments on commit ce0c59a

Please sign in to comment.