macOS Apple Silicon CocoaPods Error: incompatible architecture (have x86_64, need arm64)

System Ruby or mixed Rosetta shell installed x86_64 `ffi` gem.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: macOS Apple Silicon CocoaPods Error Platform: Mobile
Common Root Causes:
  • System Ruby or mixed Rosetta shell installed x86_64 `ffi` gem.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Install CocoaPods via Homebrew ARM64 (`brew install cocoapods`) and run natively without Rosetta.
Safe Diagnostic Command:
which ruby && file "$(which pod)"
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

System Ruby or mixed Rosetta shell installed x86_64 `ffi` gem. Recommended diagnostic: `which ruby && file "$(which pod)"`. Remediation: Install CocoaPods via Homebrew ARM64 (`brew install cocoapods`) and run natively without Rosetta.

Worked Examples

  • Run `which ruby && file "$(which pod)"` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-ios-cocoapods-ffi-arm64 · Independently verified: 2026-11-25

Related Resources