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 menus in iOS13+ [CollectionView]

Event Loop, Run Loop, Programs with and without it

Heap & Stack: What the heck?

The Complete Beginner’s Guide to Apple Shortcut Deep Linking for Developers

Set Orientation Programmatically (Swift)

How to get Iphone, Ipad, UDID without Mac & Itunes in just few steps:

Class Inheritance & Type casting in Swift

Flutter Boring Tab to Cool Tab

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

Getting Accurate Profiling Data from iOS Applications

Why do I stream my app development?

Why Swift is better than…

iOS Saving data using Codable protocol