SDKのインストール
iOS SDKをダウンロードしてインストールする方法をご紹介します。
推奨
Get started with our SDK integration wizard
SDKのダウンロードとインストール
ご利用のパッケージマネージャーを使用してiOS SDKをダウンロードしインストールしてください。
Install using CocoaPods
ステップ1:CocoaPodsのダウンロード
CocoaPods の最新バージョンをダウンロードしてインストールしてください。
ステップ2:依存関係の追加
Add the latest version of AppsFlyerFramework
to your project's Podfile:
pod 'AppsFlyerFramework'
ステップ3:依存関係のインストール
In your terminal, navigate to your project's root folder and run pod install
.
ステップ4:Xcodeワークスペースを開く
In Xcode, use the .xcworkspace
file to open the project from this point forward, instead of the .xcodeproj
file.
If you are developing a tvOS app, CocoaPods automatically adds the relevant dependencies from AppsFlyerFramework
.
Install using Carthage
ステップ1:Carthageのインストール
Carthage の最新バージョンをインストールしてください。
ステップ2:依存関係の追加
Add the following line to your Cartfile
binary:
binary "https://raw.githubusercontent.com/AppsFlyerSDK/AppsFlyerFramework/master/Carthage/appsflyer-ios.json"
現在、tvOSアプリはサポートしていません。
注意
上記のリンクは、Staticのライブラリにリンクしています。もし新しいiOSバージョンにアップグレードする場合には、次の手順を実行してください。
- copy-frameworksを実行するXcodeから、Run Script のStageを削除してください。
- ライブラリが埋め込まれていないことを確認してください。
詳細については Carthageのドキュメントを参照してください。
Install using Swift Package Manager (V6.1.0
+)
V6.1.0
+)Starting 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 > Add Packages:

ステップ2: iOS SDKのGitHubリポジトリの追加
Enter the AppsFlyer SDK GitHub repository. You can select one of the following:

ステップ3:SDKバージョンの選択

ステップ4:AppsFlyerLibを目的のTargetに追加する

Manual install
ステップ1:静的フレームワークのダウンロード
iOS SDKを静的フレームワークとしてダウンロードしてください。
SDKスタティックフレームワークのダウンロードの整合性を確認するには、こちらをクリックしてください。
ステップ2:ファイルの解凍
Unzip the AppsFlyerLib.framework.zip
file you just downloaded.
ステップ3:プロジェクトにインポートする
Drag the AppsFlyerLib.framework
folder 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
AppsFlyerFramework
:
- このリポジトリのクローンを作成してください。
- Find
AppsFlyerLib.framework
in this folder of the cloned repo.- ステップ3を繰り返してください。
ネイティブiOSフレームワークの依存関係
このSDKでは、以下のネイティブフレームワークを自動的に追加して使用しています。
AdSupport
framework: This framework is required to collect the IDFA from devices. Without IDFA you cannot attribute installs to Meta ads, Twitter, Google Ads, and other networks.AdServices
framework (V6.1.3+
): Measure the performance of Apple Search Ads in your app.iAd
framework: (Deprecated) Measure the performance of Apple Search Ads in your app. Note: TheiAd
framework has not been in use sinceV6.10.1
and completely removed from the code base fromV6.13.0
.
StrictモードSDK
StrictモードSDKを使用して、IDFAの収集機能とAdSupport frameworkの依存関係を除外してください (たとえば、Kids向けアプリを開発する場合などに有効です)。
次のいずれかの方法でStrictモードSDKをインストールできます。
Install using CocoaPods
pod 'AppsFlyerFramework/Strict'
Install using Carthage
binary "https://raw.githubusercontent.com/AppsFlyerSDK/AppsFlyerFramework/master/Carthage/appsflyer-strict.json" ~> 6.3.2
Install using Swift Package Manager
手順に従って、Swift Package Managerを使用してSDKをインストールし、リポジトリ名で https://ja.dev.appsflyer.com/hc/docs/install-ios-sdk#install-using-swift-package-manager-v610 を使用します https://github.com/AppsFlyerSDK/AppsFlyerFramework-Strict
更新済 4か月前