Repository navigation
ci: use explicit arch paths for arm64/x86_64 binaries (skip release/ symlink) - #5165
Merged
Merged
Conversation
…symlink) ## Root Cause After `xcrun swift build --arch arm64`, `Desktop/.build/release/Omi Computer` does NOT exist (the `release/` symlink is not updated). The `cp` fails silently, leaving `/tmp/OmiComputer-arm64` empty. The echo showed a false-positive `arm64 binary: arm64` because `file /tmp/OmiComputer-arm64` (non-existent) outputs the filepath which contains "arm64", and grep -oE matched it. ## Fix Use explicit arch-specific output paths throughout: - arm64: `Desktop/.build/arm64-apple-macosx/release/$BINARY_NAME` - x86_64: `Desktop/.build/x86_64-apple-macosx/release/$BINARY_NAME` - Sparkle: x86_64 arch path, fallback to arm64 - SWIFT_BUILD_DIR: x86_64 arch path, fallback to arm64 The `release/` symlink is never used. Both arch dirs exist after build #11 confirmed that --arch x86_64 (run after arm64) creates x86_64-apple-macosx/. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
m13v
force-pushed
the
fix/lipo-arch-paths
branch
from
February 26, 2026 16:03
e501c5a to
cb1eaf2
Compare
Contributor
Greptile SummaryFixed a critical CI issue where the Key improvements:
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: cb1eaf2 |
Glucksberg
pushed a commit
to Glucksberg/omi-local
that referenced
this pull request
Apr 28, 2026
…symlink) (BasedHardware#5165) ## Root Cause After `xcrun swift build --arch arm64`, `Desktop/.build/release/Omi Computer` does NOT exist (the `release/` symlink is not updated by `--arch` on Codemagic M2). The `cp` failed silently. The echo showed a **false-positive** `arm64 binary: arm64` because `file /tmp/OmiComputer-arm64` (non-existent file) outputs the filepath which contains "arm64", and `grep -oE` matched it. Build log evidence (build `69a065cb5f240a649219ee41`): - Line 200: `cp: Desktop/.build/release/Omi Computer: No such file or directory` - Line 201: `arm64 binary: arm64` ← false positive from filename match, not real binary ## Fix Use explicit arch-specific output paths throughout (never use `release/` symlink): - arm64 binary: `Desktop/.build/arm64-apple-macosx/release/$BINARY_NAME` - x86_64 binary: `Desktop/.build/x86_64-apple-macosx/release/$BINARY_NAME` - Sparkle: x86_64 arch path, fallback to arm64 - SWIFT_BUILD_DIR: x86_64 arch path, fallback to arm64 Both arch dirs confirmed to exist in build BasedHardware#11 (x86_64-apple-macosx/ created when --arch x86_64 runs after arm64). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.
Root Cause
After
xcrun swift build --arch arm64,Desktop/.build/release/Omi Computerdoes NOT exist (therelease/symlink is not updated by--archon Codemagic M2). Thecpfailed silently. The echo showed a false-positivearm64 binary: arm64becausefile /tmp/OmiComputer-arm64(non-existent file) outputs the filepath which contains "arm64", andgrep -oEmatched it.Build log evidence (build
69a065cb5f240a649219ee41):cp: Desktop/.build/release/Omi Computer: No such file or directoryarm64 binary: arm64← false positive from filename match, not real binaryFix
Use explicit arch-specific output paths throughout (never use
release/symlink):Desktop/.build/arm64-apple-macosx/release/$BINARY_NAMEDesktop/.build/x86_64-apple-macosx/release/$BINARY_NAMEBoth arch dirs confirmed to exist in build #11 (x86_64-apple-macosx/ created when --arch x86_64 runs after arm64).
🤖 Generated with Claude Code