> ## Documentation Index
> Fetch the complete documentation index at: https://docs.appcharge.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Import the Payment Links SDK

This article explains how to import the Payment Links SDK for iOS. You can install it via Swift Package Manager (SPM) or manually.

## Requirements

|           |                       |
| --------- | :-------------------- |
| iOS       | **13.0** or higher    |
| Framework | Static `.xcframework` |
| Swift     | **5.7 – 5.10**        |
| Xcode     | **15.0** or higher    |

### Distribution methods

* [Swift Package Manager](https://github.com/Appcharge/ios-payment-links)

## Import the SDK via SPM

To import the Payment Links SDK for iOS via SPM:

1. Open your iOS project in Xcode.

2. Go to **File > Add Package Dependencies**.

3. Enter the iOS Payment Links SDK repository URL: `https://github.com/Appcharge/ios-payment-links`.

   <img src="https://mintcdn.com/appcharge/pgQNefK6v2mrfKWg/images/sdks/ios/add-github-repo.png?fit=max&auto=format&n=pgQNefK6v2mrfKWg&q=85&s=1685b67c21d0fd357cba86b0f1d266ed" alt="Add GitHub repository" width="1065" height="592" data-path="images/sdks/ios/add-github-repo.png" />

4. Use the dropdown-menu to select your **Dependency Rule**:

   * **Up to Next Major Version:** for the latest major version. (Recommended)

     <img src="https://mintcdn.com/appcharge/pgQNefK6v2mrfKWg/images/sdks/ios/major-version2.png?fit=max&auto=format&n=pgQNefK6v2mrfKWg&q=85&s=5f1d1fea03c479079a480d3436323279" alt="Major version" width="459" height="128" data-path="images/sdks/ios/major-version2.png" />

   * **Up to Next Minor Version:** for the latest minor version.

     <img src="https://mintcdn.com/appcharge/pgQNefK6v2mrfKWg/images/sdks/ios/minor-version.png?fit=max&auto=format&n=pgQNefK6v2mrfKWg&q=85&s=a4018e7c6022f2ccb5df686568fe1d8b" alt="Major version" width="471" height="202" data-path="images/sdks/ios/minor-version.png" />

5. Use the **Add to Project** drop-down menu to select your app target.

   <img src="https://mintcdn.com/appcharge/pgQNefK6v2mrfKWg/images/sdks/ios/add-to-project.png?fit=max&auto=format&n=pgQNefK6v2mrfKWg&q=85&s=ab416d0592b69f2fbc428a35db95a74f" alt="Add to Project" width="444" height="41" data-path="images/sdks/ios/add-to-project.png" />

## Import the SDK manually

To import the Payment Links SDK for iOS manually:

1. Clone the Appcharge [Payment Links](https://github.com/Appcharge/ios-payment-links) repository to your local machine.
2. Drag the `ACPaymentLinks.xcframework` folder into your Xcode project navigator.
3. In the popup, make sure **Copy items if needed** is checked.
4. Select your target and go to the **General tab > Frameworks, Libraries, and Embedded Content**. Set the SDK to **Embed & Sign**.
