How to install properly CocoaPods on Macbook M1 Silicon
Asked Answered
C

5

9

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.

Creamer answered 5/2, 2021 at 17:0 Comment(1)
For me was the solution through the Homebrew.Crannog
C
16

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
Coenocyte answered 7/6, 2021 at 17:5 Comment(3)
It works for me on Air M1 2020, Thanks!Falco
This seems to works with command arch -arm64 brew install cocoapods, only solution that workedMckellar
OutStanding working for me.............M1 proEligibility
P
5

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
Phillisphilly answered 4/6, 2021 at 11:18 Comment(0)
B
4

For me was the solution through the Homebrew.

  1. Install Homebrew natively on M1 https://docs.brew.sh/Installation#alternative-installs

  2. Then install Cocoapods https://formulae.brew.sh/formula/cocoapods

Beliabelial answered 10/2, 2021 at 12:11 Comment(0)
P
0

This worked for me, you should have homebrew

arch -arm64 brew install cocoapods
Perch answered 16/5, 2023 at 8:14 Comment(0)
K
0

I have got solution to install CocoaPods on Macbook M1, M2, M3

Follow below steps to install CocoaPods on Macbook M1, M2, M3 Silicon

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

  2. https://rvm.io/rvm/install command: \curl -sSL https://get.rvm.io | bash

  3. CocoaPods overview and setup https://kotlinlang.org/docs/native-cocoapods.html

Install Ruby. You can choose a specific version command: rvm install ruby 3.0.0

Install CocoaPods: command: sudo gem install -n /usr/local/bin cocoapods

You can follow steps in sequence one by one =>

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

command: \curl -sSL https://get.rvm.io | bash

command: rvm install ruby 3.0.0

command: sudo gem install -n /usr/local/bin cocoapods

Kellyekellyn answered 16/4 at 17:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.