How to setup a new M1/M1 Pro/M1 Max MacBook Pro for iOS Development?

December 07, 20213 min read#iOS, #Swift, #MacBook, #M1, #tool, #ruby

I have just got my M1 Max MacBook Pro 14-Inch and it’s beautiful. As an iOS developer, I always feel excited to setup a new development environment on a new laptop.

In this article, I’ll show you some essential tools I’m used to install when setting a new development environment for iOS.

Install Oh My ZSH

sh -c "$(curl -fsSL"


Install brew

Running the official installation command:

/bin/bash -c "$(curl -fsSL"

brew will be install in /opt/homebrew folder which is different than what is in Intel-based Mac

==> This script will install:
==> The following new directories will be created:

After finishing installation, you will see a warning

Warning: /opt/homebrew/bin is not in your PATH.
  Instructions on how to configure your shell for Homebrew
  can be found in the 'Next steps' section below.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
No analytics data has been sent yet (nor will any be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:

==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
    echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/antran/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"
- Run brew help to get started
- Further documentation:

If you run brew, you will see an error

➜  ~ % brew
zsh: command not found: brew

Run both commands:

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/antran/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

Now, it should work

➜  ~ % brew doctor
Your system is ready to brew.

Install xcodes

The best command-line tool to install and switch between multiple versions of Xcode.

You can either use the command line version or the app version


Install Xcode


Quick Drop logo

Profile picture

Personal blog by An Tran. I'm focusing on creating useful apps.
#Swift #Kotlin #Mobile #MachineLearning #Minimalist

© An Tran - 2024