Skip to content

Use dwarf (not dwarf-with-dsym) for Debug builds#766

Merged
theospears merged 1 commit intomasterfrom
debug-dwarf-no-dsym
Apr 11, 2026
Merged

Use dwarf (not dwarf-with-dsym) for Debug builds#766
theospears merged 1 commit intomasterfrom
debug-dwarf-no-dsym

Conversation

@theospears
Copy link
Copy Markdown
Collaborator

@theospears theospears commented Apr 11, 2026

Summary

  • Fixes the warning: (arm64) .../BeeSwift.app/BeeSwift empty dSYM file detected, dSYM was created with an executable with no debug info emitted on every debug launch.
  • Xcode 16's Debug Dylib Support moves all debug info into BeeSwift.debug.dylib inside the app bundle, leaving the main executable as a shim with no DWARF. dsymutil was still running on that shim (because Debug was set to dwarf-with-dsym), producing an empty dSYM.
  • Switches Debug to plain dwarf (Xcode's default for Debug). dSYMs aren't needed for local debug builds — lldb reads DWARF directly from object files / dylibs. Release remains dwarf-with-dsym so archive builds still generate symbols for crash symbolication.

Test plan

  • Clean build folder, build & run in Debug on device — confirm the "empty dSYM file detected" warning no longer appears.
  • Set a breakpoint and confirm debugging still works (symbols, stepping, variable inspection).

🤖 Generated with Claude Code

Xcode 16's Debug Dylib Support puts all debug info in
BeeSwift.debug.dylib inside the app bundle, leaving the main
executable as a shim with no DWARF. dsymutil was still running on
that shim (because Debug was set to dwarf-with-dsym), producing an
empty dSYM and the "empty dSYM file detected" warning on every
debug launch. dSYMs aren't needed for local debug builds anyway -
the debugger reads DWARF directly. Release remains dwarf-with-dsym.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@theospears theospears requested a review from a team as a code owner April 11, 2026 23:32
@theospears theospears merged commit 1e3a797 into master Apr 11, 2026
5 checks passed
@theospears theospears deleted the debug-dwarf-no-dsym branch April 11, 2026 23:35
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