How to install properly CocoaPods on Macbook M1 Silicon

Viewed 12526

I am trying to install Cocoa Pods on my new MacBook Pro with the M1 Chip.

There are some solutions that found from December. Since is February those solutions may be a little outdated.

I cannot find any instructions on CocoaPods website. Would anyone be able to help me with that matter? I want to do it right and, sadly, I have little knowledge about that topic.

Many thanks for help.

3 Answers

These are the steps I followed :

Install HomeBrew in M1 Mac, open the Rosetta Terminal and run the following command :

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

After Homebrew installation is done, run this command in the terminal :

brew install cocoapods

I have mac Pro M1, Try to run on x86_64 architecture:

sudo arch -x86_64 gem install ffi

Then at the root of your project

arch -x86_64 pod install
Related