Published in



Simple way to use Cocoapods on M1

I recently bought a Macbook Pro M1 and still without any regrets! yeey! 🙌🏻 I was a bit worried about app compatibility with other software that is not ready for M1 but almost every app that I’m using is perfectly working well.

But, if you are an iOS developer and trying to work with Cocoapods on xcode, that might be a problem and give you a panic when there’s tons of errors popping up but don’t worry! Here’s the simplest way to do it!

1️⃣ Look for terminal in Finder

2️⃣ Right click the terminal and click “get info”, then check “Open using Rosetta” under the General menu.

Okay, We have to use Rosetta translation technology in order for us to run!

Rosetta is an emulator designed to bridge the transition between Intel and Apple Processors. In other words, Rosetta translates apps built for Intel to Apple Silicon.

3️⃣ Open the terminal, and type sudo gem install ffi

4️⃣ then install cocoapods sudo gem install cocoapods

5️⃣ blah blah blah.. after installing cocoapods, uncheck the box Open using Rosetta in “get info”. it works just fine ✌🏻

6️⃣ Go to your project directory and do USUAL!

  1. pod init
  2. open Podfile
  3. edit Podfile (add pods)
  4. pod install
  5. open .xcworkspace to enjoy 😁

Then you’ll see everything successfully installed! Thank you for reading and this post might help some of M1 users like me 🍎




Everything connected with Tech & Code. Follow to join our 900K+ monthly readers

Recommended from Medium

Context Menu, Alert and ActionSheet in SwiftUI

SwiftUI: view modifier to set global (hole screen relative) position of the view

iOS Environment Setup

FileManager in Swift.

Network-cmds for jailbroken iOS 11

2019 iPad Webdev: Panic Coda/AWS

Serving Apple App Site Association file using Nginx

Customize UISlider and UIProgressView

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Hey! I am currently studying iOS by myself, and wanna be a cool app developer 🕶 please correct me if i’m wrong or if there’s any thing that you wanna share😊✌️

More from Medium

Storing App Data Locally

How UIKit’s Auto Layout works and why it matters

Measurements in Swift: Enhanced and Simplified Again

UIFontPickerViewController Usage