Home > OS >  How do I install pod on M1
How do I install pod on M1

Time:08-05

I am currently getting this issue when installing podfile. I've been trying to install pod install, but It keeps failing. The error message is below.

You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: https://www.ruby-lang.org/bugreport.html [IMPORTANT] Don't forget to include the Crash Report log file under DiagnosticReports directory in bug reports. enter image description here

CodePudding user response:

M1 is compatible to arm, so when performing arch related commands, it is operated under arm64. so an architecture will be set to x86_64 to install ffi.

sudo arch -x86_64 gem install ffi

M1 should indicates x86_64 when installing pod on M1 Macbook, cause to be synchronize on an architecture.

arch -x86_64 pod install

CodePudding user response:

follow steps

  1. remove the pod

    $ sudo gem install cocoapods-deintegrate cocoapods-clean

    $ pod deintegrate

    $ pod cache clean --all

    $ rm Podfile

2.Install pod

Right-click on Terminal in Finder Get Info Open with Rosetta I installed a gem that seems to be related to the symbol not found in the error:

sudo gem install ffi
  • Related