zeroclaw/crates
ehushubhamshaw 5fbce9b4c0 fix(aardvark-sys): diagnose arch mismatch and sign vendor .so for Rosetta 2
Two issues prevented the Aardvark from being detected on Apple Silicon:
1. The vendored x86_64 aardvark.so could not be dlopen-ed by a native arm64
   process (architecture mismatch). Added explicit error messages in lib()
   that identify mach-o incompatible-architecture errors and guide users to
   either download the arm64 SDK from Total Phase or cross-build as x86_64.
2. macOS Gatekeeper blocked dlopen with code-signature policy error for
   the downloaded .so when loaded from an x86_64 Rosetta 2 process.
   Fixed by running xattr -cr + codesign --sign - on the vendor binary.

Verified with a C x86_64 probe (via Rosetta 2) and cargo test -p aardvark-sys
--target x86_64-apple-darwin: library loads, aa_find_devices returns n=1
port=0x0000 (adapter present and free).

Workaround for arm64 hosts until Total Phase ships an arm64 macOS SDK:
  rustup target add x86_64-apple-darwin
  cargo build --features hardware --target x86_64-apple-darwin --bin zeroclaw
  (requires ~8 GB free disk space; wasmtime is an unconditional workspace dep)
2026-03-04 19:09:54 -05:00
..
aardvark-sys fix(aardvark-sys): diagnose arch mismatch and sign vendor .so for Rosetta 2 2026-03-04 19:09:54 -05:00
robot-kit chore(deps): bump the rust-all group across 1 directory with 4 updates (#1689) 2026-02-24 19:23:35 -05:00
zeroclaw-core fix(build): resolve broken merge; restore main + re-apply hardware 2026-03-02 21:27:53 -05:00
zeroclaw-types fix(build): resolve broken merge; restore main + re-apply hardware 2026-03-02 21:27:53 -05:00