You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-1Lines changed: 30 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ UIViewController which allows to detect smile in real time.
14
14
$ gem install cocoapods
15
15
```
16
16
17
-
## Podfile
17
+
###Podfile
18
18
19
19
To integrate SmileViewController into your Xcode project using CocoaPods, specify it in your `Podfile`:
20
20
@@ -33,6 +33,33 @@ Then, run the following command:
33
33
$ pod install
34
34
```
35
35
36
+
## Installation with Carthage
37
+
To install [Carthage](https://github.com/Carthage/Carthage) run following command:
38
+
```bash
39
+
$ brew install carthage
40
+
```
41
+
42
+
### Cartfile
43
+
1. To integrate SmileViewController into your Xcode project using Carthage, specify it in your `Cartfile`:
44
+
```ruby
45
+
github "MaximAlien/SmileViewController"~>1.0.8
46
+
```
47
+
48
+
2. Then, run the following command:
49
+
```bash
50
+
$ carthage update
51
+
```
52
+
53
+
3. On your application targets’ *General* settings tab, in the *Linked Frameworks and Libraries* section, drag and drop SmileViewCtrlr.framework you want to use from the Carthage/Build folder on disk.
54
+
55
+
4. On your application targets’ *Build Phases* settings tab, click the *+* icon and choose *New Run Script Phase*. Create a Run Script in which you specify your shell (ex: /bin/sh), add the following contents to the script area below the shell:
56
+
```bash
57
+
/usr/local/bin/carthage copy-frameworks
58
+
```
59
+
60
+
5. Add path to the framework you want to use under *Input Files*: $(SRCROOT)/Carthage/Build/iOS/SmileViewCtrlr.framework
61
+
6. Add path to the copied frameworks to the *Output Files*, e.g.: $(BUILT_PRODUCTS_DIR)/$(FRAMEWORKS_FOLDER_PATH)/SmileViewCtrlr.framework
62
+
36
63
## Usage
37
64
38
65
To use this view controller simply load it up from AppDelegate:
@@ -41,6 +68,8 @@ To use this view controller simply load it up from AppDelegate:
0 commit comments