Command Palette

Search for a command to run...

Назад к скиллам
скилл № 76945

dd-ios-sdk-v3-upgrade

Upgrades an iOS application from Datadog's v2 mobile SDK (dd-sdk-ios 2.x) to the latest compatible stable v3 release, including module changes, Objective-C…

БесплатноБез исполняемых скриптов
datadog-labsот datadog-labs★ 188 звёзд на GitHub

Установить dd-ios-sdk-v3-upgrade в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Upgrade the Datadog iOS SDK from v2 to v3

Use this skill when an iOS project uses the Datadog iOS SDK 2.x (dd-sdk-ios) and must be
upgraded to a stable 3.x release. The v3 migration removes the DatadogObjc module, makes
the user ID mandatory, replaces the legacy URLSession delegates and splits the Session
Replay privacy level into three settings.

Do not use it when:

  • the project does not use Datadog yet: this is an installation, not an upgrade.

This skill incorporates the "Migration from 2.x to 3.0" section of
[MIGRATION.md][migration] at tag 3.19.0, checked against the public API surface of
3.19.0 and 2.30.2. Where this skill is more specific than that guide, it says so. Use the
instructions below as the source of truth; consult the live guide only when the project uses
an API not covered here or the chosen target is newer than 3.19.0 (the guide is unchanged at
3.20.0).

Ground rules

  • Inspect the whole project before editing. Change only what the migration requires.
  • Never change the project's dependency manager (for example from vendored xcframeworks to Swift
    Package Manager, or from Carthage to Swift Package Manager). That is a decision for the project
    owner: if the upgrade needs it, stop and report it instead.
  • Preserve the application's telemetry. Do not remove a Datadog product, an instrumentation
    or a test to make the project compile.
  • Never invent a value. If a required value (for example a user ID) is not in the project, handle
    that item as its step says (step 5 for the user ID) and report it.
  • Never change the client token, application ID, env, site, service or
    trackingConsent values the project already sets.
  • Do not adopt a Datadog feature the project did not already use, and do not enable new options.
    Linking the module of code that already used a feature through DatadogObjc is not a new feature.
  • Never change build settings, including the deployment target, unless step 2 requires it
    and says so.
  • Edit real files only. If the dependency manager's command is not available, do not create
    or simulate a resolved file or lock file; report that it was not run.
  • Never write the client token anywhere in your output: not in the report, not in a list of
    "preserved" or "unchanged" values, not partially and not masked. Write clientToken: unchanged
    and nothing else. This rule has been broken before, always when listing the values that were
    kept; see the check at the end of step 10.
  • Report honestly what ran and what did not, including the build.

1. Establish the migration scope

Before editing, inspect the project for:

  • the dependency manager: XCRemoteSwiftPackageReference for dd-sdk-ios in
    *.xcodeproj/project.pbxproj, Package.swift, Podfile and Podfile.lock, Cartfile and
    Cartfile.resolved, or manually linked XCFrameworks. Several may coexist;
  • the current SDK version, read from the resolved file (Package.resolved, Podfile.lock,
    Cartfile.resolved) and not from memory;
  • every Datadog* product or pod in use, and every import Datadog…, @import Datadog…
    and #import <Datadog…>; and the Alamofire extension (pod 'DatadogAlamofireExtension',
    import DatadogAlamofireExtension, DDRequestInterceptor, DDEventMonitor);
  • calls to Datadog.initialize, Datadog.setUserInfo, RUMView(path:,
    SessionReplay.Configuration and defaultPrivacyLevel, and any use of
    DatadogURLSessionDelegate, DDURLSessionDelegate or DDNSURLSessionDelegate;
  • the deployment target of every target that links Datadog, and the Xcode version: run
    xcodebuild -version, or use the version the task states when xcodebuild is not available.

Stop and report, without editing, in these cases:

  • the project does not use the Datadog iOS SDK;
  • the project vendors the SDK as xcframeworks by hand (no Swift Package Manager, CocoaPods or
    Carthage) and any target builds for visionOS: the release zip has no visionOS slice, so this
    path cannot upgrade it (see "XCFrameworks (manual)" in the appendix).

When you stop, edit nothing, not even the source code, and say in the report what you found, why
the upgrade cannot proceed and what the project owner can decide, for example moving to Swift
Package Manager. Do not make that move yourself.

2. Choose the target version and check requirements

Follow the appendix section "Choose the target version" at the end of this file. In short:

  • The target is the newest stable 3.x release whose Package.swift requirements (platforms and
    swift-tools-version) the project's deployment target and Xcode meet.
  • List the releases with every method in the appendix. Use the fallback version 3.14.0 only
    when GitHub itself cannot be reached (connection errors or timeouts from every method); a missing
    tool such as git: command not found is not a network failure, so use the curl method.
    When you use the fallback, say so prominently in the report, with the reas
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл dd-ios-sdk-v3-upgrade?

Upgrades an iOS application from Datadog's v2 mobile SDK (dd-sdk-ios 2.x) to the latest compatible stable v3 release, including module changes, Objective-C imports, user info, RUM views, Session Replay privacy levels and URLSession instrumentation.

Как установить скилл dd-ios-sdk-v3-upgrade?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dd-ios-sdk-v3-upgrade запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить dd-ios-sdk-v3-upgrade с