Dynatrace Mobile App Monitoring
- iOS 11+
- tvOS 11+
- Xcode → File → Swift Packages → Add Package Dependency...
- Use
https://github.com/Dynatrace/swift-mobile-sdk.git
to add the Dynatrace package repository. - Select the desired product (
Dynatrace
orDynatraceSessionReplay
). - To update the package version rule double-click the
Dynatrace
entry in the Swift Packages tab of the Xcode project settings. - To update the product selection you have to remove the package and add it again (as of Xcode 12 there is no edit feature for Swift packages).
- Xcode → File → Swift Packages → Update to Latest Package Versions
This adds Dynatrace OneAgent SDK for iOS for automatic mobile app instrumentation.
This adds OneAgent SDK for iOS for automatic mobile app instrumentation as static XCFramework. Due to some Swift Package Manager limitations -ObjC
must be added manually to Other Linker Flags in the according Xcode project target settings to correctly link this static XCFramework.
This adds Session Replay module for replay on crash. This product includes Dynatrace OneAgent for Mobile and is not available for tvOS.
Follow the configuration setup for instrumenting mobile apps from the Dynatrace UI:
- Update
Info.plist
or provide a configuration dictionary for agent startup. - Configure the data privacy.
Please see LICENSE for more information.
Detailed documentation can be found here.