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.
Environment
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.moduleaccessor (called vialocalizedBundle()→ClaudeProviderImplementation.appendUsageMenuEntries) fails to initializeCodexBar_CodexBar.bundleon macOS 26.5, triggeringassertionFailure.The bundle exists at the expected path (
CodexBar.app/Contents/Resources/CodexBar_CodexBar.bundle), but itsInfo.plistonly containsCFBundleDevelopmentRegion— missingCFBundlePackageType,CFBundleIdentifier, and other required keys. macOS 26.5 appears stricter about flat bundle validation, causingBundle(url:)to returnnilfor all candidates.Crash stack (key frames)
Suggested fix
Ensure the generated
CodexBar_CodexBar.bundle/Info.plistincludesCFBundlePackageType = BNDLandCFBundleIdentifier. This can be done by adding a customInfo.plistto 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-*.ipsif needed.