Skip to content

Compile the unsigned iPhone app and UNO R4 sketch - #3

Merged
pschmeln merged 2 commits into
mainfrom
cursor/cloud-compile-checks-e781
Nov 7, 2026
Merged

pschmeln merged 2 commits into
mainfrom
cursor/cloud-compile-checks-e781

Conversation

@pschmeln

@pschmeln pschmeln commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

Pull request 2 is already merged, so this continues that demo on a new branch from current main.

GitHub Actions now compiles the native iPhone app with code signing disabled, and compiles the UNO R4 WiFi sketch with Arduino CLI 1.5.1, Renesas core 1.6.0, and ArduinoBLE 2.1.0. Runtime is unchanged: the iPhone 16 processes video locally, then sends Bluetooth packets to the board, which drives four actuator outputs. The compile jobs do not infer hazards and do not produce an installable or flashed build.

What changed

  • .github/workflows/prototype-build.yml uses contents: read, pull_request and push to main, and no secrets.
  • The iOS target imports Combine so ObservableObject is visible to the compiler. Camera, motion, and Bluetooth usage strings say the work stays on the phone.
  • The debug screen labels the simulation switches as D2, D3, and D4 bench commands. They stay on the simulation source and do not read the camera.
  • The shared header uses C linkage so the C++ sketch can call the tested logic.
  • Docs separate a green unsigned compile from Apple signing, which is still required before the app can be installed.

Validation

  • make -C prototype test passed locally, including the D2–D5 pin mapping.
  • Prototype builds succeeded on commit be81232.
  • Unsigned iOS compile used Xcode 26.6 and logged ** BUILD SUCCEEDED ** with signing disabled.
  • UNO R4 WiFi compile used Arduino CLI 1.5.1, core arduino:renesas_uno 1.6.0, and ArduinoBLE 2.1.0. The sketch used 85340 bytes of the 262144-byte program space.
  • The first run failed and was fixed: Swift Int/Int32 mismatches and a non-optional raycast query, plus missing C linkage for the sketch. That failed run is 42425680945.

Still manual

  • A human merges.
  • A person with a Mac and their own Apple team signs and installs the app on the iPhone 16. This repository does not enroll an Apple account.
  • A person flashes the compiled sketch to the UNO R4 WiFi and wires external drivers. GPIO current stays within the 8 mA datasheet limit only because the pin is a logic enable.
Open in Web Open in Cursor 

cursoragent and others added 2 commits November 7, 2026 23:31
Keep camera processing on the phone. The new jobs only check that the native app and firmware sources build, with signing disabled and the Arduino core and library pinned.

Co-authored-by: pschmeln <pschmeln@users.noreply.github.com>
Give the shared header C linkage so the UNO R4 sketch can call it, and match Swift's Int and Int32 imports from the unsigned Xcode build.

Co-authored-by: pschmeln <pschmeln@users.noreply.github.com>
@pschmeln
pschmeln merged commit c7b243f into main Nov 7, 2026
3 checks passed
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.

2 participants