skip to Main Content

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

4

Answers


  1. Chosen as BEST ANSWER

    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
    

  2. 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
    
    Login or Signup to reply.
  3. If using M1 and don’t want to enter arch -x86-64 everytime, you can use this command to install ffi instead:

    gem install --user-install ffi -- --enable-libffi-alloc
    

    And then it should be able to run pod install without it. Using sudo might be needed.

    Reference

    Login or Signup to reply.
  4. Open applications folder and find Terminal in Utilities folder and right click on it and select get info and check Open Using Rosetta

    enter image description here

    Then follow the regular intel cocoapod installation it will work.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search