feat: Make double tap and usage of IMU conditional#12
Merged
Conversation
refactor: Improve code and remove some unsupported defines
axelpey
suggested changes
Mar 29, 2024
m13v
added a commit
that referenced
this pull request
Feb 26, 2026
## Problem Build #12 failed at \"Build Swift app (arm64 + x86_64)\" on a fresh Codemagic Mac mini M2: ``` ERROR: arm64 binary not found at Desktop/.build/arm64-apple-macosx/release/Omi Computer artifacts checkouts repositories workspace-state.json ``` Root cause: SPM needs to download ~673MB of binary artifacts (Firebase, Sentry, Sparkle xcframeworks) on a fresh machine. When `xcrun swift build --arch arm64` runs, it tries to download everything **and compile** in a single step. The download failed/aborted mid-way (375MB of 673MB downloaded), leaving no `arm64-apple-macosx/` directory — so compilation never started. Without `set -e`, the script continued to the binary existence check and exited with 1. Build #11 succeeded only because that machine had a warm SPM cache from previous builds. ## Fix 1. **New \"Resolve SPM packages\" step** — runs `xcrun swift package resolve` before building, with a 3-attempt retry loop. This pre-downloads all binary artifacts. If the first attempt fails partway, the second attempt resumes from where it left off (SPM checkpoints downloads). 2. **`--triple` instead of `--arch`** — switches from `xcrun swift build --arch arm64` to `--triple arm64-apple-macosx`. This matches the local `release.sh` behavior and ensures the output binary **always** lands in `.build/arm64-apple-macosx/release/` regardless of the machine's native architecture (on native M2, `--arch arm64` may use the `release/` symlink path). 3. **SPM cache** — adds `~/Library/Caches/org.swift.swiftpm` to Codemagic's build cache so binary xcframeworks are not re-downloaded on every subsequent build. ## Result - Fresh machine: resolve step downloads packages with retry, then both builds compile using already-cached artifacts - Warm machine: resolve is instant (already cached), builds proceed normally 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Glucksberg
pushed a commit
to Glucksberg/omi-local
that referenced
this pull request
Apr 28, 2026
refactor: Improve code and remove some unsupported defines
Glucksberg
pushed a commit
to Glucksberg/omi-local
that referenced
this pull request
Apr 28, 2026
…Hardware#5166) ## Problem Build BasedHardware#12 failed at \"Build Swift app (arm64 + x86_64)\" on a fresh Codemagic Mac mini M2: ``` ERROR: arm64 binary not found at Desktop/.build/arm64-apple-macosx/release/Omi Computer artifacts checkouts repositories workspace-state.json ``` Root cause: SPM needs to download ~673MB of binary artifacts (Firebase, Sentry, Sparkle xcframeworks) on a fresh machine. When `xcrun swift build --arch arm64` runs, it tries to download everything **and compile** in a single step. The download failed/aborted mid-way (375MB of 673MB downloaded), leaving no `arm64-apple-macosx/` directory — so compilation never started. Without `set -e`, the script continued to the binary existence check and exited with 1. Build BasedHardware#11 succeeded only because that machine had a warm SPM cache from previous builds. ## Fix 1. **New \"Resolve SPM packages\" step** — runs `xcrun swift package resolve` before building, with a 3-attempt retry loop. This pre-downloads all binary artifacts. If the first attempt fails partway, the second attempt resumes from where it left off (SPM checkpoints downloads). 2. **`--triple` instead of `--arch`** — switches from `xcrun swift build --arch arm64` to `--triple arm64-apple-macosx`. This matches the local `release.sh` behavior and ensures the output binary **always** lands in `.build/arm64-apple-macosx/release/` regardless of the machine's native architecture (on native M2, `--arch arm64` may use the `release/` symlink path). 3. **SPM cache** — adds `~/Library/Caches/org.swift.swiftpm` to Codemagic's build cache so binary xcframeworks are not re-downloaded on every subsequent build. ## Result - Fresh machine: resolve step downloads packages with retry, then both builds compile using already-cached artifacts - Warm machine: resolve is instant (already cached), builds proceed normally 🤖 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.
refactor: Improve code and remove some unsupported defines