Day165 — setup KMM environment

Jacky Tsang
2 min readJun 7, 2023

It records the steps I took to set up KMM environment on my M2 Pro Mac Mini.

  1. run kdoctor to verify your environment

run below command to install kdoctor

brew install kdoctor
above is not the original error message

It told me my CocoaPods is not installed correctly.

2. install CocoaPods via RVM

I recommend installing CocoaPods via RVM instead of Homebrew.

brew install gnupg
gpg --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash
rvm install ruby 3.0.0
sudo gem install -n /usr/local/bin cocoapods

after that, you can verify your installation using kdoctor.

reference:

--

--