LinkKit supports Swift Package Manager and CocoaPods.
To install Plaid Link using Swift Package Manager you can follow the tutorial published by Apple using the URL for this repository with the current version:
- In Xcode, select “File” → “Add Packages...”
- Enter
https://github.com/plaid/plaid-link-ios-spm.git
Alternatively, you can add the following dependency to your Package.swift
file:
.package(url: "https://github.com/plaid/plaid-link-ios-spm.git", from: "5.6.0")
Recommendation: Use the plaid-link-spm repo instead of the main plaid-link-ios repository. The main repository with full git history is very large (~1 GB), and Swift Package Manager always downloads the full repository with all git history. This plaid-link-ios-spm repository is much smaller (less than 500kb), making the download faster.
This plaid-link-spm repository just contains a pointer to the precompiled XCFramework included in the latest plaid-link-ios release (typically ~20MB). Since plaid-link-ios doesn't provide source code it's strongly recommended that users depend on plaid-link-ios-spm instead.
Validation: When using plaid-link-ios-spm, the downloaded LinkKit.xframework
isn't visible in the project navigator. To validate the authenticity of a plaid-link-ios-spm package, you can confirm that the Package.swift
file references a binary XCFramework from https://github.com/plaid/plaid-link-ios/releases.
- If you haven’t already, install the latest version of CocoaPods.
- If you don’t have an existing Podfile, create one by running:
pod init
- Add this line to your Podfile:
pod 'Plaid'
- Install the pods by running:
pod install
- To update to newer releases in the future, run:
pod install
📱 This repository contains multiple sample applications (requiring Xcode 14) that demonstrate integration and use of Plaid Link for iOS.
📚 Detailed instructions on how to integrate with Plaid Link for iOS can be found in our main documentation at plaid.com/docs/link/ios.
5️⃣ If you're updating from version 4.x to 5.x please read our migration guide.
Before building and running the sample application replace any Xcode placeholder strings (like <#GENERATED_LINK_TOKEN#>
) in the code with the appropriate value so that Plaid Link is configured properly. For convenience the Xcode placeholder strings are also marked as compile-time warnings.
- Sign up for a Plaid account to get an API key.
- Make a request to our API using your API key.
Build and run the demo application to experience the Link flow for yourself.