Skip to content

Commit 2d226c4

Browse files
authored
Update README.md
1 parent e3984b7 commit 2d226c4

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
12
[![Build Status](https://travis-ci.org/arturgrigor/IPAPI.svg?branch=master)](https://travis-ci.org/arturgrigor/IPAPI)
23
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/IPAPI.svg)](https://img.shields.io/cocoapods/v/IPAPI.svg)
34
[![Platform](https://img.shields.io/cocoapods/p/IPAPI.svg?style=flat)](http://cocoadocs.org/docsets/IPAPIIPAPI)
@@ -15,6 +16,25 @@ http://ip-api.com Geolocation API client written in Swift.
1516

1617
## Installation
1718

19+
### Carthage
20+
21+
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
22+
23+
You can install Carthage with [Homebrew](http://brew.sh/) using the following command:
24+
25+
```bash
26+
$ brew update
27+
$ brew install carthage
28+
```
29+
30+
To integrate IPAPI into your Xcode project using Carthage, specify it in your `Cartfile`:
31+
32+
```ogdl
33+
github "arturgrigor/IPAPI" ~> 1.1
34+
```
35+
36+
Run `carthage update` to build the framework and drag the built `IPAPI.framework` into your Xcode project.
37+
1838
### CocoaPods
1939

2040
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:

0 commit comments

Comments
 (0)