Skip to content

Commit 3ba793a

Browse files
committed
Merge pull request #8 from banjun/readme-cocoapods
[README] add CocoaPods in Installation section
2 parents 3e5fe40 + ea20dc8 commit 3ba793a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,42 @@ For Swift 1.2 use the 1.2 branch.
77

88
Installation
99
============
10+
11+
Manually (iOS 7+)
12+
-----------------
1013
1. Copy the SwiftIO folder into your Xcode project!
1114

15+
CocoaPods (iOS 8+)
16+
------------------
17+
Install cocoapods 0.36.0 or later:
18+
19+
```
20+
$ gem install cocoapods
21+
```
22+
23+
Create `Podfile` and add `pod 'Socket.IO-Client-Swift'`:
24+
25+
```ruby
26+
source 'https://github.com/CocoaPods/Specs.git'
27+
platform :ios, '8.0'
28+
use_frameworks!
29+
30+
pod 'Socket.IO-Client-Swift', '~> 1.1'
31+
```
32+
33+
Install pods:
34+
35+
```
36+
$ pod install
37+
```
38+
39+
Import in your swift file:
40+
41+
```swift
42+
import Socket_IO_Client_Swift
43+
```
44+
45+
1246
API
1347
===
1448
Constructor

0 commit comments

Comments
 (0)