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
+28-5Lines changed: 28 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ This repo contains the tools and step by step instructions so that your users ca
6
6
## Requirements
7
7
- You will need to have the Yoti app on your phone
8
8
- You will need to ensure the minimum version of the deployment target is 9.0 or above.
9
+
- You will need Xcode 10.2 or above
9
10
10
11
## Installing the SDK
11
12
@@ -38,7 +39,7 @@ $ brew install carthage
38
39
To integrate Yoti into your Xcode project using Carthage, specify it in your `Cartfile`:
39
40
40
41
```
41
-
github "getyoti/ios-sdk-button" ~> 1.0
42
+
github "getyoti/ios-sdk-button" ~> 2.0
42
43
```
43
44
44
45
This will allow you to type `carthage update ios-sdk-button` in your Terminal to fetch and build the latest version of the framework.
@@ -48,13 +49,35 @@ Drag the built `YotiButtonSDK.framework` into your Xcode project without copying
48
49
49
50
Each time you want to fetch the dependency, you can type `carthage bootstrap`.
50
51
51
-
### Drag & Drop (not recommended)
52
+
### CocoaPods
52
53
53
-
You can also add the Yoti SDK by adding the project via a submodule and dragging the Yoti's project file into yours.
54
+
[CocoaPods](https://cocoapods.org) is a dependency manager for Swift and Objective-C Cocoa projects.
55
+
56
+
Using the default Ruby install can require you to use sudo when installing gems. Further installation instructions are in [the guides](https://guides.cocoapods.org/using/getting-started.html#getting-started).
57
+
58
+
```
59
+
$ sudo gem install cocoapods
60
+
```
61
+
62
+
To integrate Yoti into your Xcode project using Cocoapods, specify it in your `Podfile`:
63
+
64
+
```
65
+
pod 'yoti-sdk' ~> 2.0
66
+
```
67
+
68
+
Tip: CocoaPods provides a `pod init` command to create a Podfile with smart defaults. You should use it.
69
+
70
+
Now you can install the dependencies in your project:
54
71
55
-
### Pod
72
+
```
73
+
$ pod install
74
+
```
56
75
57
-
We don't currently support Pod but it's coming soon.
76
+
Make sure to always open the Xcode workspace instead of the project file when building your project.
77
+
78
+
### Drag & Drop (not recommended)
79
+
80
+
You can also add the Yoti SDK by adding the project via a submodule and dragging the Yoti's project file into yours.
58
81
59
82
## Configuration
60
83
Before we start the configuration you have to add Yoti SDK as a build phase:
0 commit comments