Skip to content

Commit de1e403

Browse files
authored
Add Swift Package Manager Instructions to the Quickstart Guide
1 parent bd38a88 commit de1e403

File tree

1 file changed

+12
-0
lines changed
  • src/connections/sources/catalog/libraries/mobile/ios

1 file changed

+12
-0
lines changed

src/connections/sources/catalog/libraries/mobile/ios/quickstart.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ When you create a Source in the Segment web app, it tells the Segment servers th
2828

2929
Segment recommends you install Analytics for iOS by using either [Cocoapods](http://cocoapods.org/) or your Swift Package Manager. These allow you to create a build with specific bundled destinations, and they have a simplified installation and upgrading process.
3030

31+
### Install the SDK using Swift Package Manager
32+
Right click in the Project Manager tab and choose "Add Package Dependencies...".
33+
34+
Copy the following link to the Analytics Swift package:
35+
```
36+
https://github.com/segmentio/analytics-swift
37+
```
38+
then paste it into the search field of the package dependency window.
39+
40+
Then click the "Add Package" button.
41+
42+
### Install the SDK using a Podfile
3143
First, add the `Analytics` dependency to your `Podfile` by adding the following line:
3244

3345
```ruby

0 commit comments

Comments
 (0)