dt-obs-ios-sdk

Automates Dynatrace iOS SDK integration via Swift Package Manager, plist configuration, and build verification.

Updated Dec 12, 2025
One-click install
npx skills add https://github.com/ricardojjulia/ESACompanion --skill dt-obs-ios-sdk-ricardojjulia
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dt-obs-ios-sdk
Source: https://github.com/ricardojjulia/ESACompanion/tree/main/.github/skills/dt-obs-ios-sdk
Command: npx skills add https://github.com/ricardojjulia/ESACompanion --skill dt-obs-ios-sdk-ricardojjulia

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires xcodeproj, and includes scripts (resource) components.

What problem does it solve? Manually integrating the Dynatrace OneAgent SDK into an iOS project involves error-prone steps: editing the Xcode project file, creating a Dynatrace.plist, adding privacy opt-in code, and verifying the agent actually starts. This Skill automates the entire flow from zero to first monitoring event. ## Core Features & Use Cases - Automated SPM Integration: Adds the Dynatrace Swift Mobile SDK package dependency to your Xcode project using an idempotent Ruby script built on the xcodeproj gem. - Configuration & Privacy Setup: Generates the Dynatrace.plist with DTXApplicationID and DTXBeaconURL, and injects user privacy opt-in code into your SwiftUI or UIKit entry point. - End-to-End Verification: Builds the project, launches it on an iOS simulator, and asserts the Dynatrace agent startup log appears, with distinct exit codes for each failure type. - Use Case: You copy a setup prompt from the Dynatrace Experience Vitals wizard containing your DTXApplicationID and DTXBeaconURL, paste it into your AI assistant, and the Skill configures, builds, and verifies the integration automatically. ## Quick Start Set up the Dynatrace iOS SDK in my Xcode project using this configuration: DTXApplicationID ABC-123 and DTXBeaconURL https://example.dynatrace.com/mbeacon.

Frequently Asked Questions about dt-obs-ios-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add the Dynatrace iOS SDK to my Xcode project?▼

Add the Swift Package Manager dependency from https://github.com/Dynatrace/swift-mobile-sdk.git (version 8.0.0 or later), create a Dynatrace.plist with your DTXApplicationID and DTXBeaconURL, and add import Dynatrace to your app entry point. This Skill automates all of these steps.

How do I configure Dynatrace user privacy opt-in on iOS?▼

Set DTXUserOptIn to true in Dynatrace.plist so data collection starts disabled, then call Dynatrace.userPrivacyOptions() to set dataCollectionLevel and crashReportingOptedIn, and apply it with Dynatrace.applyUserPrivacyOptions. In production, drive this from a privacy settings screen.

Does the Dynatrace iOS SDK support CocoaPods or manual integration?▼

This Skill covers Swift Package Manager integration only. CocoaPods and manual framework integration are not supported by the automated workflow and would require following the official Dynatrace documentation manually.

What are the requirements for Dynatrace iOS SDK setup?▼

You need macOS with Xcode 16 or later, an iOS deployment target of 12.0 or higher, the Xcode MCP server for project interaction, and Ruby with the xcodeproj gem installed for the SPM dependency script.

Why is the Dynatrace agent not starting after iOS integration?▼

Common causes include a missing import Dynatrace statement in the app entry point, incorrect DTXApplicationID or DTXBeaconURL values in Dynatrace.plist, or the plist not being bundled in the app target. The verification script checks each of these with distinct exit codes.