Skip to content

ci: build the app arm64-only so releases ship again - #123

Merged
solderzzc merged 1 commit into
mainfrom
claude/fix-release-arm64
Aug 7, 2026
Merged

solderzzc merged 1 commit into
mainfrom
claude/fix-release-arm64

Conversation

@solderzzc

Copy link
Copy Markdown
Member

The Release and Build-DMG workflows have failed on every run since 2026-05-13:

error: static method 'zeros(_:type:stream:)' requires that 'Float16' conform to 'HasDType'

No release binary has shipped in almost three months — users are still on b648, which is why #112 was reported against it. Every fix merged this week is invisible to release-binary users until this lands.

Cause

Both workflows build SwiftBuddy with xcodebuild -destination "generic/platform=macOS", which defaults to a universal (arm64 + x86_64) build. Float16: HasDType does not hold on x86_64, and a Float16 usage added to mlx-swift-lm's SwitchLayers.swift:1004 in mid-May made the x86_64 slice fail to compile — last green run May 8, first red May 13.

CI proper never caught it: build_and_unit_test uses plain swift build, which is arm64-only. Reproduced locally with swift build --triple x86_64-apple-macosx14.0 (same error, same line).

Fix

Pin ARCHS=arm64 ONLY_ACTIVE_ARCH=NO in both xcodebuild invocations. MLX requires Apple Silicon, so the x86_64 slice was never functional — it only had to compile, and now it doesn't have to.

Verification

Ran the exact workflow command locally (generate_xcodeproj → xcodebuild with the new flags, unsigned, same TARGET_BUILD_DIR shape): BUILD SUCCEEDED.

Note: release.yml is workflow_dispatch-gated, so the real proof needs a manual dispatch after merge — the DMG workflow will also run automatically on the next SwiftBuddy/** change.

🤖 Generated with Claude Code

The Release and DMG workflows have failed on every run since 2026-05-13 with

    error: static method 'zeros(_:type:stream:)' requires that 'Float16'
    conform to 'HasDType'

so no release binary has shipped in almost three months — users are still on
b648, which is why issue #112 was reported against it.

Cause: both workflows build SwiftBuddy with xcodebuild -destination
"generic/platform=macOS", which defaults to a universal (arm64 + x86_64)
build. Float16 does not conform to HasDType on x86_64, and an Float16 usage
added to mlx-swift-lm's SwitchLayers in mid-May made the x86_64 slice fail
to compile. Reproduced locally with swift build --triple x86_64-apple-macosx.
CI proper never caught it because build_and_unit_test uses plain swift build,
which is arm64-only.

Pin ARCHS=arm64 in both invocations. MLX requires Apple Silicon, so an
x86_64 slice was never functional — it only had to compile. Verified locally
with the exact workflow command: BUILD SUCCEEDED.

Co-Authored-By: Claude Opus 5 <[email protected]>
@solderzzc
solderzzc merged commit 32987d8 into main Aug 7, 2026
9 of 11 checks passed
@solderzzc
solderzzc deleted the claude/fix-release-arm64 branch August 7, 2026 04:03
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