Mohsen
05/07/2023, 6:44 PM➜ ~ 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:
➜ ~ 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!Mohsen
05/07/2023, 7:11 PMephemient
05/07/2023, 9:08 PMsudo gem
at any timeephemient
05/07/2023, 9:09 PM