Skip to content

fix(xcode): debug signing config + SPM module resolution - #77

Merged
rdemeritt merged 2 commits into
mainfrom
fix/xcode-build-debug-signing-spm
Jun 6, 2026
Merged

fix(xcode): debug signing config + SPM module resolution#77
rdemeritt merged 2 commits into
mainfrom
fix/xcode-build-debug-signing-spm

Conversation

@rdemeritt

Copy link
Copy Markdown
Member

Summary

  • Run destination error — Debug build config was missing a code signing identity usable without a provisioning profile. Added WhisKey/WhisKey.Debug.entitlements (omits keychain-access-groups, which requires a provisioning profile) and wired the Debug config to it: CODE_SIGN_IDENTITY: "-", CODE_SIGN_STYLE: Manual, DEVELOPMENT_TEAM: "", ENABLE_HARDENED_RUNTIME: NO. The "My Mac" destination now resolves without Xcode prompting for a team or profile.
  • Metal build script arg orderxcrun metal -sdk macosx is invalid; corrected to xcrun -sdk macosx metal.
  • Swift module resolution (WhisKeyCore, WhisKeyUI, GRDB) — The target had Sources/WhisKeyCore listed under sources, causing the compiler to treat it as loose source files rather than a package product. Removed that entry and added all three as explicit SPM dependencies products. Regenerated WhisKey.xcodeproj via xcodegen generate.

Test plan

  • Open WhisKey.xcodeproj in Xcode
  • Select run destination "My Mac"
  • Build succeeds with no code signing or module resolution errors
  • App launches; transcription pipeline operates normally
  • Confirm Metal shader compile step passes (check build log for xcrun -sdk macosx metal)

rdemeritt added 2 commits June 4, 2026 07:28
Two bare print() calls on error paths replaced with FileLogger.shared.log(.error)
so errors land in the app log file rather than stdout.
- Add WhisKey.Debug.entitlements (omits keychain-access-groups for local
  builds) and wire Debug config to use it with CODE_SIGN_IDENTITY="-",
  CODE_SIGN_STYLE=Manual, DEVELOPMENT_TEAM="", ENABLE_HARDENED_RUNTIME=NO
  so "My Mac" run destination works without a provisioning profile
- Fix Metal script arg order: xcrun -sdk macosx metal (was xcrun metal -sdk macosx)
- Remove duplicate Sources/WhisKeyCore from target sources; add WhisKeyCore,
  WhisKeyUI, and GRDB as explicit SPM product dependencies so the compiler
  resolves the modules correctly
- Regenerate WhisKey.xcodeproj via xcodegen generate
@rdemeritt
rdemeritt merged commit 054da16 into main Jun 6, 2026
4 checks passed
@rdemeritt
rdemeritt deleted the fix/xcode-build-debug-signing-spm branch June 6, 2026 12:18
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