Skip to content

v0.25 crashes on macOS 26.5 beta when opening menu — NSBundle.module fails to initialize localization bundle #900

Description

@mingginwan

Environment

  • CodexBar: 0.25 (build 60)
  • macOS: 26.5 beta (25F5068a), Apple Silicon (MacBookPro18,2)

What happens
CodexBar crashes immediately every time the menu bar icon is clicked. The app launches fine but crashes the moment the menu tries to open.

Crash cause
This is a regression introduced in v0.25 with the new localization feature. The SPM-generated NSBundle.module accessor (called via localizedBundle() → ClaudeProviderImplementation.appendUsageMenuEntries) fails to initialize CodexBar_CodexBar.bundle on macOS 26.5, triggering assertionFailure.

The bundle exists at the expected path (CodexBar.app/Contents/Resources/CodexBar_CodexBar.bundle), but its Info.plist only contains CFBundleDevelopmentRegion — missing CFBundlePackageType, CFBundleIdentifier, and other required keys. macOS 26.5 appears stricter about flat bundle validation, causing Bundle(url:) to return nil for all candidates.

Crash stack (key frames)

_assertionFailure(_:_:file:line:flags:)
closure #1 in variable initialization expression of static NSBundle.module
one-time initialization function for module   [dispatch_once]
localizedBundle()
ClaudeProviderImplementation.appendUsageMenuEntries(context:entries:)
MenuDescriptor.usageSection(for:store:settings:)
StatusItemController.populateMenu(_:provider:)
StatusItemController.menuWillOpen(_:)

Suggested fix
Ensure the generated CodexBar_CodexBar.bundle/Info.plist includes CFBundlePackageType = BNDL and CFBundleIdentifier. This can be done by adding a custom Info.plist to the SPM resource bundle target, or verifying the Xcode build settings for the bundle target produce a complete plist.

15 crash reports available at ~/Library/Logs/DiagnosticReports/CodexBar-2026-05-11-*.ips if needed.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedConfirmed backlog item or verified open bugarea:install-distributionInstall, packaging, Homebrew, launch, binary detectionbugSomething isn't workingpriority:highHigh priority: confirmed serious bug or blocker

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions