Hello everyone, I’m having some trouble with makin...
# multiplatform
m
Hello everyone, I’m having some trouble with making kDoctor work on M1 pro. This is the error I’m receiving:
Copy code
➜ ~ kdoctor         
Environment diagnose (to see all details, use -v option):
[✓] Operation System
[✓] Java
[✓] Android Studio
[✓] Xcode
[✖] Cocoapods
 ✖ System ruby is currently used
  CocoaPods is not compatible with system ruby installation on Apple M1 computers.
  Please install ruby via Homebrew, rvm, rbenv or other tool and make it default
  Detailed information: <https://stackoverflow.com/questions/64901180/how-to-run-cocoapods-on-apple-silicon-m1/66556339#66556339>

Conclusion:
 ✖ KDoctor has diagnosed one or more problems while checking your environment.
  Please check the output for problem description and possible solutions.
Tried installing cocoapods but:
Copy code
➜ ~ sudo gem install cocoapods
ERROR: While executing gem ... (Gem::FilePermissionError)
  You don't have write permissions for the /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 directory.
I already installed the cocoapods using
brew install cocoapods
but still receiving the same error. The StackOverflow link didn’t help really. Any help would be appreciated!
This link helped: https://kotlinlang.org/docs/native-cocoapods.html Brew is not a good option for M1 chips.
e
I would also strongly recommend the use of Bundler instead of
sudo gem
at any time
that plus rbenv (or rvm) will keep your local/dev environment sane