Skip to content

Support Debug Swift builds - #470

Open
ketzusaka wants to merge 1 commit into
mainfrom
swift-debug-builds
Open

Support Debug Swift builds#470
ketzusaka wants to merge 1 commit into
mainfrom
swift-debug-builds

Conversation

@ketzusaka

@ketzusaka ketzusaka commented Aug 7, 2026

Copy link
Copy Markdown

This introduces build profiles for the Swift package that walletkit produces. A --debug flag can now be passed to the build system to produce a framework with debug symbols. This allows us to attach with LLDB and step through the real code, and reduces the iteration cycle for testing new functionality directly in the iOS app.

walletkit-debugging

Note

Low Risk
Build-tooling only; default release behavior is unchanged except for threading a profile parameter through existing steps.

Overview
Adds Release vs Debug build profiles for the iOS XCFramework pipeline. Release keeps the existing optimized build (--release, dead-strip link flags, release artifact paths). Debug builds unoptimized with symbols preserved (no --release, no dead-strip flags, debug paths) so LLDB can step through Rust in the iOS app.

The shared build::run path now takes a Profile and uses it for RUSTFLAGS, cargo build, universal lipo, UniFFI binding generation, and slice paths. swift local accepts --debug to pick the debug profile; swift build and swift test still always use release.

Reviewed by Cursor Bugbot for commit 6efc02e. Bugbot is set up for automated code reviews on this repo. Configure here.

This introduces build profiles for the Swift package that walletkit produces. A --debug flag can now be passed to the build system to produce a framework with debug symbols. This allows us to attach with LLDB and step through the real code, and reduces the iteration cycle for testing new functionality directly in the iOS app.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant