Skip to content

Commit c476561

Browse files
authored
Merge pull request #5396 from ruYJWkgd/patch-1
Add Swift Package Manager Instructions to the Quickstart Guide
2 parents f4f409b + 1be3e2c commit c476561

File tree

1 file changed

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

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ 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+
33+
1. In the Project Manager tab of your Xcode project, right click and select **Add Package Dependencies**.
34+
2. Copy the following link to the Analytics Swift package:
35+
```
36+
https://github.com/segmentio/analytics-swift
37+
```
38+
3. Paste the link into the search field of the package dependency window, then click **Add Package**.
39+
40+
### Install the SDK using a Podfile
3141
First, add the `Analytics` dependency to your `Podfile` by adding the following line:
3242

3343
```ruby

0 commit comments

Comments
 (0)