Skip to content

UniFFI: Debugging skill for Swift consumers#1166

Open
pblazej wants to merge 1 commit into
mainfrom
blaze/xcode-debugging-skill
Open

UniFFI: Debugging skill for Swift consumers#1166
pblazej wants to merge 1 commit into
mainfrom
blaze/xcode-debugging-skill

Conversation

@pblazej

@pblazej pblazej commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

What

Adds a workflow for debugging the Rust side of livekit-uniffi from Swift consumers: cargo make swift-package-debug produces a locally consumable LiveKitUniFFI package in seconds, and support/swift/DEBUGGING.md holds the recipes — pointing client-sdk-swift at a local rust-sdks checkout, full mixed Swift/Rust backtraces, breakpoints in .rs files from both lldb and the Xcode GUI, and Xcode debug workspaces.

Claude skill

The doc doubles as a Claude skill (symlinked from .claude/skills/uniffi-swift-debug), split into:

  • Manual workflows — Claude wires up the local packages and a debug workspace; you set breakpoints in .rs files and debug in Xcode.
  • Agentic workflows — fully headless; Claude generates a CLI sample crossing the UniFFI boundary, drives lldb in batch mode, and reports the backtrace.

Example usage

/uniffi-swift-debug create and open a debug workspace with swift-example

/uniffi-swift-debug build a standalone cli in tmp/ that verifies breakpoints in the token generation

🤖 Generated with Claude Code

- cargo make swift-package-debug: fast macos-only unstripped debug xcframework
  (same flow as swift-package, parametrized; development profile only)
- support/swift/DEBUGGING.md: recipes for linking client-sdk-swift to a local
  build, headless lldb verification, Xcode debug workspaces, and breakpoints
  in .rs files
- exposed as a Claude skill via the .claude/skills/uniffi-swift-debug symlink

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@pblazej pblazej requested a review from ladvoc as a code owner June 12, 2026 08:46
@pblazej

pblazej commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author
Screenshot 2026-06-12 at 10 27 49 AM

@pblazej pblazej changed the title Add Rust-side debugging flow for Swift consumers UniFFI: Debugging skill for Swift consumers Jun 12, 2026

@ladvoc ladvoc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@ladvoc ladvoc added the internal to tag changes that don't require changelog documentation label Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal to tag changes that don't require changelog documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants