Skip to content

Commit

Permalink
update Carthage guideline in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
herui committed Mar 22, 2016
1 parent 666187c commit 74a926d
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## HHAttachmentSheetView

[![travis CI](https://img.shields.io/travis/red3/HHAttachmentSheetView/master.svg)](http://cocoapods.org/pods/HHAttachmentSheetView)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/red3/HHAttachmentSheetView)
[![Version](https://img.shields.io/cocoapods/v/HHAttachmentSheetView.svg?style=flat)](http://cocoapods.org/pods/HHAttachmentSheetView)
[![License](https://img.shields.io/cocoapods/l/HHAttachmentSheetView.svg?style=flat)](http://cocoapods.org/pods/HHAttachmentSheetView)
[![Platform](https://img.shields.io/cocoapods/p/HHAttachmentSheetView.svg?style=flat)](http://cocoapods.org/pods/HHAttachmentSheetView)
Expand Down Expand Up @@ -31,14 +32,53 @@ For more details: [blog.coderhr.com](http://blog.coderhr.com)
```ruby
pod "HHAttachmentSheetView"
```
### Carthage

[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager for Cocoa application. To install the carthage tool, you can use [Homebrew](http://brew.sh).

``` bash
$ brew update
$ brew install carthage
```

To integrate HHAttachmentSheetView into your Xcode project using Carthage, specify it in your `Cartfile`:

``` ogdl
github "red3/HHAttachmentSheetView" ~> 1.1.0
```

Then, run the following command to build the HHAttachmentSheetView framework:

``` bash
$ carthage update

```

At last, you need to set up your Xcode project manually to add the HHAttachmentSheetView framework.

On your application targets’ “General” settings tab, in the “Linked Frameworks and Libraries” section, drag and drop each framework you want to use from the Carthage/Build folder on disk.

On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script with the following content:

```
/usr/local/bin/carthage copy-frameworks
```

and add the paths to the frameworks you want to use under “Input Files”:

```
$(SRCROOT)/Carthage/Build/iOS/HHAttachmentSheetView.framework
```

For more information about how to use Carthage, please see its [project page](https://github.com/Carthage/Carthage).

### Manual

Add `HHAttachmentSheetView` folder into your project.

## Demo

Open and run the Demo project in Xcode to see HHAttachmentSheetView in action
Open and run the `HHAttachmentSheetViewDemo.xcodeproj` in Xcode to see HHAttachmentSheetView in action

## Example usage
```Objective-C
Expand Down Expand Up @@ -84,6 +124,9 @@ Open and run the Demo project in Xcode to see HHAttachmentSheetView in action
## Update Logs
### 2016.03.21 (Tag: 1.1.0)
* Support for Carthage
### 2015.12.29 (Tag: 1.0.0)
* Support for cocoapod
Expand Down

0 comments on commit 74a926d

Please sign in to comment.