Skip to content

Fix build on Apple Silicon (arm64), modernize a few deprecated AppKit calls - #112

Open
andreabrugnoli wants to merge 1 commit into
jakob:masterfrom
andreabrugnoli:apple-silicon-build-fix
Open

andreabrugnoli wants to merge 1 commit into
jakob:masterfrom
andreabrugnoli:apple-silicon-build-fix

Conversation

@andreabrugnoli

Copy link
Copy Markdown

The project hasn't been touched since 2020, before Apple Silicon Macs existed, and no longer builds cleanly with current Xcode. This PR is a small, non-invasive fix, no new features, no behavior change:

  • Raise MACOSX_DEPLOYMENT_TARGET from 10.8 to 11.0. Current Xcode's minimum supported deployment target is 10.13, so 10.8 now produces a build warning; 11.0 is also the first macOS release that shipped on Apple Silicon.
  • Drop leftover Swift bridging-header build settings. There are no .swift files anywhere in the project, so these were dead configuration.
  • Replace a handful of constants that are deprecated (but still compile) on modern macOS with their current equivalents: NSRightTextAlignment/NSLeftTextAlignment/NSCenterTextAlignmentNSTextAlignment*, NSStringPboardTypeNSPasteboardTypeString, NSFileHandlingPanelOKButtonNSModalResponseOK, NSOnState/NSOffStateNSControlStateValue*.

No source logic changes beyond the constant renames above.

Verified locally on an Apple Silicon Mac: clean xcodebuild Release build produces a native arm64 binary, the app launches and opens/saves both comma- and semicolon-separated CSV files without issue, and the existing XCTest suite (33 tests) passes unchanged.

I know the project has been quiet for a while — happy to adjust anything if you'd rather keep the deployment target lower, or split this differently.

🤖 Generated with Claude Code

- raise MACOSX_DEPLOYMENT_TARGET from 10.8 to 11.0 (below current Xcode's
  minimum supported deployment target, 10.13; 11.0 is also the first macOS
  release for Apple Silicon)
- drop leftover Swift bridging-header build settings (no .swift files exist
  in the project)
- replace deprecated NSRightTextAlignment/NSLeftTextAlignment/
  NSCenterTextAlignment, NSStringPboardType, NSFileHandlingPanelOKButton,
  NSOnState/NSOffState with their modern equivalents

Verified: clean Release build with current Xcode produces a native arm64
binary, app launches and opens/saves CSV files without issue, existing test
suite passes unchanged.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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