Skip to content

build: produce universal binary for Apple Silicon and Intel#44

Open
samuelmburu wants to merge 2 commits into
spreadpaper:mainfrom
k-leumas:main
Open

build: produce universal binary for Apple Silicon and Intel#44
samuelmburu wants to merge 2 commits into
spreadpaper:mainfrom
k-leumas:main

Conversation

@samuelmburu

Copy link
Copy Markdown

Summary

  • Adds ARCHS="arm64 x86_64" and ONLY_ACTIVE_ARCH=NO to the xcodebuild archive step in release.yml
  • GitHub's macos-latest runner is Apple Silicon, so without these flags the archive only includes arm64
    even though the Xcode project already lists both architectures
  • Updates README to reflect that Intel Macs are supported (removes the note directing Intel users to open a
    feature request)

How it works

The Xcode project already has ARCHS = arm64 x86_64 in its build settings — no project file changes needed.
The two added flags simply make CI honour those settings, producing a fat/universal binary that runs
natively on both Apple Silicon and Intel Macs without Rosetta.

Test plan

  • Built locally with xcodebuild -arch x86_64 on an Intel Mac running macOS 15.7.7 (Sequoia) — lipo -info confirms x86_64 binary
  • App launches and sets wallpaper correctly on Intel Mac (macOS 15.7.7)
  • Verify the release CI produces a universal binary: lipo -info SpreadPaper.app/Contents/MacOS/SpreadPaper should report arm64 x86_64

Add ARCHS and ONLY_ACTIVE_ARCH flags to xcodebuild archive so CI
produces a universal (arm64 + x86_64) binary on Apple Silicon runners.
Update README to reflect Intel Mac support.
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