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. See, Release Notes
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 Install
Manual Install
To manually install the iOS SDK, follow these steps:
Download the iOS SDK
- Navigate to theDownload page.
- From the APP AGENT list, check the Mobile RUM Agent - iOS checkbox.
- Click Download for the latest iOS Agent that will appear in the Releases results. This downloads a file named
iOSAgent-<version>.zip
.
Add the Framework to the App
- Unzip
iOSAgent-<version>.zip
. - Import the
ADEUMInstrumentation.framework
(orADEUMInstrumentation.xcframework
) folder into your project Xcode.
Add Required Libraries
- SystemConfiguration.framework
- CoreTelephony.framework
- libz.dylib or .tbd
Set the -ObjC Flag
-ObjC
flag to Other Linker Flags.- Select your project in the Project Navigator.
- In the target list, select the target that builds your application.
- Select the Build Settings tab.
- Scroll to Linking and open.
- Go to Other Linker Flags and double-click to open the popup.
- If the -ObjC flag is not in your list, click + and add it.
Swift Package Manager Install
After you add the package, complete the following:
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
.framework
file with the updated SDK. - Rebuild your app to apply the changes.