Install the iOS SDK
The Splunk AppDynamics iOS SDK framework helps you to monitor the performance and activities of an iOS application. You can add the Splunk AppDynamics iOS SDK in your Xcode environment from the Splunk AppDynamics GitHub repository.
You can install the iOS SDK using CocoaPods, Swift Package Manager, or by manually downloading and installing it. We recommended that you use CocoaPods or Swift Package Manager to install the iOS SDK because it handles the dependencies, the build settings, and simplifies upgrading.
- Swift Package Manager install is supported for iOS Agent 23.10.1 or higher.
- Download the list of copyrights and licenses for each Open Source components in iOS Agent.
Follow the instructions for your preferred installation method:
iOS SDK Install Requirements
You must have the supported Xcode version.
| Installation Type | Xcode Version |
|---|---|
| CocoaPods and Manual | >=7 |
| Swift Package Manager | >=14.1 |
CocoaPods のインストール
手動でのインストール
iOS SDK を手動でインストールするには、次の手順を実行します。
iOS SDK のダウンロード
- ダウンロードページに移動します。
- [APP AGENT] リストから、[Mobile RUM Agent - iOS] チェックボックスをオンにします。
- [Releases] の結果に表示される最新の iOS エージェントの [Download] をクリックします。これにより、「
iOSAgent-<version>.zip」という名前のファイルがダウンロードされます。
アプリケーションへのフレームワークの追加
iOSAgent-<version>.zipを解凍します。ADEUMInstrumentation.framework(またはADEUMInstrumentation.xcframework)フォルダをプロジェクト Xcode にインポートします。
必要なライブラリの追加
- SystemConfiguration.framework
- CoreTelephony.framework
- libz.dylib または .tbd
-ObjC フラグの設定
-ObjC フラグを追加する必要があります。
- [Project Navigator] でプロジェクトを選択します。
- ターゲットリストで、アプリケーションを構築するターゲットを選択します。
- [Build Settings] タブを選択します。
- [] にスクロールして開きます。
- [Other Linker Flags] に移動し、ダブルクリックしてポップアップを開きます。
- フラグがリストにない場合は、[]をクリックして追加します。
Swift Package Manager のインストール
パッケージを追加したら、次の手順を実行します。
Upgrade the iOS SDK
Upgrade with CocoaPods
- In your project directory, run this command:
$ pod update - Rebuild.
Upgrade Manually
- Download the updated SDK.
- Replace the
.frameworkfile with the updated SDK. - Rebuild your app to apply the changes.