You need Xcode to follow along with these guides.
Download and install the iOS SDK with your package manager of choice.
Step 1: Download the SDK
Download and install the latest version of CocoaPods.
Step 2: Add dependencies
Add the latest version of
AppsFlyerFramework to your Podfile:
Step 3: Install dependencies
Step 4: Open Xcode workspace
In Xcode, use the
.xcworkspace file to open the project from this point forward, instead of the
If you are developing a tvOS app, CocoaPods automatically adds the relevant dependencies from
Step 1: Install Carthage
Install the latest version of Carthage.
Step 2: Add dependencies
Add the following line to your
Currently doesn't support tvOS apps.
The link above links to a static library. If you're upgrading to a newer iOS version, do the following:
- Remove the Run Script stage from Xcode that runs copy-frameworks.
- Make sure the library is not embedded.
To learn more, see Carthage docs.
V6.1.0 the iOS SDK can be installed via Install using Swift Package Manager (SPM):
Step 1: Navigate to Add Package Dependency
In Xcode, go to File > Swift Packages > Add Package Dependency:
Step 2: Add iOS SDK GitHub repository
Enter the AppsFlyer SDK GitHub repository:
Step 3: Select SDK version
Step 4: Add AppsFlyerLib to desired Target
Step 1: Download static framework
Download the iOS SDK as a static framework.
To verify the integrity of the SDK static framework download, click here.
Step 2: Unzip
AppsFlyerLib.framework.zip file you just downloaded.
Step 3: Import in project
AppsFlyerLib.framework file and drop it into your Xcode project. Make sure Copy items if needed is checked.
This approach is only compatible with iOS 8 and above. For tvOS apps, you need a different
The SDK automatically adds and uses the following native frameworks:
AdSupportframework: This framework is required to collect the IDFA from devices. Without IDFA you cannot attribute installs to Facebook Ads, Twitter, Google ads, and other networks
iAdframework: Measure performance of Apple Search Ads in your app
V6.1.3+): Measure the performance of Apple Search Ads in your app
Use the Strict Mode SDK to completely remove IDFA collection functionality and AdSupport framework dependencies (for example, when developing apps for kids).
You can install the Strict mode SDK using one of the following methods.
Install using CocoaPods
Install using Carthage
binary "https://raw.githubusercontent.com/AppsFlyerSDK/AppsFlyerFramework/master/Carthage/appsflyer-strict.json" ~> 6.3.2
Updated 23 days ago
|Integrate the iOS SDK|