Related pages: |
|
The iOS SDK framework helps you to monitor the performance and activities of an iOS application. You can add the
iOS SDK in your Xcode environment from the
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.
|
Follow the instructions for your preferred installation method:
You must have the supported Xcode version.
Installation Type | Xcode Version |
---|---|
CocoaPods and Manual | >=7 |
Swift Package Manager | >=14.1 |
Add the line below to a target
block in your Podfile:
pod 'AppDynamicsAgent' |
For example:
platform :ios, '8.0' use_frameworks! target 'YourApp' do pod 'AppDynamicsAgent' end |
In your project directory, run this command:
pod install |
To manually install the iOS SDK, follow these steps:
Navigate to the Download page.
iOSAgent-<version>.zip
. You can only use a Swift framework if that framework was built with the exact same version of Swift as the Xcode compiling your app. |
iOSAgent-<version>.zip
.Import the ADEUMInstrumentation.framework
(or ADEUMInstrumentation.xcframework
) folder into your project Xcode.
If you don't see that Xcode has automatically added the correct path(s), add a project-relative path to your frameworks. |
The iOS Agent requires these libraries:
SystemConfiguration.framework
CoreTelephony.framework
libz.dylib
or .tbd
To add the libraries:
Repeat this step for each missing library.
You also need to add the -ObjC
flag to Other Linker Flags.
-ObjC
flag is not in your list, click + and add it. The |
Swift Package Manager install is supported for iOS Agent 23.10.1 or higher. |
Complete the following steps in your Xcode environment to add the iOS SDK package:
After you add the package, complete the following:
Complete the following steps in your Xcode environment:
For more information, see Adding package dependencies to your app.
In your project directory, run this command: $ pod update
Rebuild.
To pick up new features or to get crucial bug fixes you want to upgrade the iOS SDK in your app.