Skip to content

fix: Place resource bundle at .app root (Bundle.main.bundleURL)#22

Merged
RAKKUNN merged 1 commit intomainfrom
fix/bundle-path-v3
Apr 12, 2026
Merged

fix: Place resource bundle at .app root (Bundle.main.bundleURL)#22
RAKKUNN merged 1 commit intomainfrom
fix/bundle-path-v3

Conversation

@RAKKUNN
Copy link
Copy Markdown
Owner

@RAKKUNN RAKKUNN commented Apr 12, 2026

Root cause: SPM generates Bundle.module that checks Bundle.main.bundleURL which resolves to .app/, NOT .app/Contents/Resources/.

Previous attempts placed bundles in Contents/Resources/ and Contents/MacOS/ — neither match.

Fix: Copy *.bundle to the .app/ root directory.

SPM's generated Bundle.module accessor checks:
  1. Bundle.main.bundleURL/KeyboardShortcuts_*.bundle  → .app/
  2. Hardcoded build path (CI-only, doesn't exist on user machine)

Previous fix copied to .app/Contents/Resources/ and MacOS/,
but neither matches Bundle.main.bundleURL which is .app/ itself.
@RAKKUNN RAKKUNN merged commit 627de78 into main Apr 12, 2026
1 check passed
@RAKKUNN RAKKUNN deleted the fix/bundle-path-v3 branch April 12, 2026 11:32
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