Skip to content

Fix Mac Release build: stop calling DEBUG-only helpers from fork code - #98

Merged
rajinsyed merged 2 commits into
mainfrom
fix-release-build-debug-only-symbols
Oct 6, 2026
Merged

rajinsyed merged 2 commits into
mainfrom
fix-release-build-debug-only-symbols

Conversation

@rajinsyed

@rajinsyed rajinsyed commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

The Mac Release build (scripts/supermux-release.sh) failed to compile, so no Release app could be installed from main. Two pieces of fork code called helpers that exist only under #if DEBUG:

  • SupermuxDeviceTerminalActions read TerminalSurface.debugDesiredFocusState(). It now reads a new public, read-only isFocusDesired. The accessor sits inside the existing device-terminal-focus fence in TerminalSurface.swift (touchpoint #817) and returns the same stored desiredFocusState.
  • SupermuxRouteCandidateSync called cmuxDebugLog. That call is now wrapped in #if DEBUG.

Debug builds behave exactly as before.

Testing

  • Ran the release script's exact xcodebuild invocation (Release, SUPERMUX_LOCAL_RELEASE, unsigned) on this branch merged with current main: ** BUILD SUCCEEDED **. On main the same build fails with the five errors listed above.
  • scripts/supermux-check-touchpoints.sh passes.
  • python3 scripts/verify-local.py fails only localization (missing supermux.activity.needsInput locales) and config-schema (stale generated schema). Both failures come from main; this PR touches neither.
  • A review subagent checked that the accessor returns the same value as the old one and that no other DEBUG-only symbol is called from Release code. It found nothing.
  • I did not launch or dogfood the installed app.

Changelog

none

Review in cubic

…ase code

debugDesiredFocusState() and cmuxDebugLog exist only in DEBUG, so the Mac
Release build failed to compile. Expose a read-only isFocusDesired inside
the device-terminal-focus fence (#817) and guard the route-candidate log.
@rajinsyed
rajinsyed merged commit c003bb3 into main Oct 6, 2026
14 of 18 checks passed
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Merge receipt for ccc90c391f, merged 2026-10-06 09:46:12 UTC

  • Not verified at merge: ci-status (not reported), CI fast guards (in progress), detect-ios-changes (in progress), Fast static checks (in progress), plan (in progress), Web complexity (in progress), CLA Assistant (failure)
  • Verified: runner, web-validation
  • Skipped by policy: web-build, web-database-tests, web-tests
  • Full suite: runs on main after merge.

Labeled merged-unverified: if main breaks near this merge, look here first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant