Skip to main content

dd-sdk-ios-setting-up-worktree

Use when creating a git worktree for dd-sdk-ios, starting isolated work alongside another checkout, or when a fresh worktree fails to build or test — missing DD_SDK_COMPILED_FOR_TESTING symbols, "no such module 'OpenTelemetryApi'", or missing *.local.xcconfig files.

소스 정보

저장소
DataDog/dd-sdk-ios
최근 소스 활동
2026년 10월 6일 12:09
감지된 SKILL.md 언어
영어
스타
289
포크
176

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
dd-sdk-ios:setting-up-worktree
description
Use when creating a git worktree for dd-sdk-ios, starting isolated work alongside another checkout, or when a fresh worktree fails to build or test — missing DD_SDK_COMPILED_FOR_TESTING symbols, "no such module 'OpenTelemetryApi'", or missing *.local.xcconfig files.
# Setting Up a dd-sdk-ios Worktree A new worktree lacks two gitignored inputs: the local xcconfigs (test targets need them) and `Carthage/Build` (`DatadogTrace` links it). Reuse the main checkout's — setup takes seconds. ```bash MAIN=$(dirname "$(git rev-parse --path-format=absolute --git-common-dir)") WT="<worktree path>" # anywhere, inside or outside the repo # Skip these two lines if the worktree already exists (e.g. created by a harness) git -C "$MAIN" fetch origin develop git -C "$MAIN" worktree add --no-track -b "<branch>" "$WT" origin/develop # branch name: dd-sdk-ios:git-branch cd "$WT" make repo-setup # local xcconfigs mkdir -p Carthage && /bin/cp -cR "$MAIN/Carthage/Build" Carthage/ # APFS clone, instant ``` - Use `/bin/cp`: Homebrew's GNU `cp` may shadow it and has no `-c`. - If `Cartfile.resolved` differs from the main checkout's, run `make dependencies` instead of the clone. - Don't run full `make`, `env-check`, or `templates` — they're machine-wide and already done. - If the worktree is inside the main checkout, add its folder to the file printed by `git rev-parse --path-format=absolute --git-path info/exclude` (not `.gitignore`) so it doesn't show up as untracked. Don't hardcode `.git/info/exclude`: in a linked worktree `.git` is a file. **Xcode MCP:** `XcodeOpenWorkspace(path: "<WT>/Datadog.xcworkspace")`. Each new folder needs approval: if the call says *"Xcode is waiting for the user to approve this request"*, ask the user to approve from the Xcode MCP menu bar icon, then retry.
GitHub에서 보기