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) |
||
|---|---|---|
| .. | ||
| aardvark-sys | ||
| robot-kit | ||
| zeroclaw-core | ||
| zeroclaw-types | ||