Build universal binary (arm64 + x86_64) so releases run on Intel Macs#300
Open
imanmachukwu wants to merge 1 commit into
Open
Build universal binary (arm64 + x86_64) so releases run on Intel Macs#300imanmachukwu wants to merge 1 commit into
imanmachukwu wants to merge 1 commit into
Conversation
The released app is currently compiled arm64-only, so it won't launch on Intel Macs even though the code has no Apple Silicon dependency (deployment target is macOS 14.0 and all frameworks used are universal-safe). - Set ARCHS to $(ARCHS_STANDARD) and ONLY_ACTIVE_ARCH=NO in the app target's Release configuration so Xcode builds both slices - Pass the same flags explicitly in scripts/release_dmg.sh, since the plain 'build' action otherwise produces only the active architecture Verified on an Intel (x86_64) Mac: the universal build launches and runs natively.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The shipped DMG is compiled arm64-only (
lipo -archson v2.0.0's binary reports justarm64), so it won't launch on Intel Macs — but nothing in the codebase requires Apple Silicon: deployment target is macOS 14.0 and all frameworks used (ScreenCaptureKit, AVFoundation, GRDB, Sparkle, etc.) are universal-safe. The release script's plainbuildaction just produces only the active architecture on your build machine.This PR sets
ARCHS = $(ARCHS_STANDARD)andONLY_ACTIVE_ARCH = NOin the app target's Release config, and passes the same flags explicitly inscripts/release_dmg.sh.Tested: built universal from this branch and have been running it natively on an Intel (i7-9750H) Mac on macOS 15.3 — app launches, records, and runs stably.
lipo -archson the product reportsx86_64 arm64.