How to Fix Cocoapods Install Errors on an Apple Silicon Macs
HTML-код
- Опубликовано: 20 июл 2022
- This is a followup tutorial on how to fix and correctly install Cocoapods on your Apple Silicon machine(M1,M2).
MacOS comes preinstalled with an oudated ruby version that gem tries to install binaries for. We are going to learn how to properly fix this and get the right version of ruby installed in your machine.
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory
Getting Started Guide
guides.cocoapods.org/using/ge...
Ruby
www.ruby-lang.org/en/downloads/
Homebrew
brew.sh
Commands
brew install ruby-install chruby
Edit the .zshrc file
vi ~/.zshrc or sudo vi ~/.zshrc
source /opt/homebrew/opt/chruby/share/chruby/chruby.sh
source /opt/homebrew/opt/chruby/share/chruby/auto.sh
chruby ruby-3.1.2
Install the latest ruby
ruby-install --latest ruby
Finally install cocoapods
sudo gem install cocoapods
Buy Me Coffee
buymeacoffee.com/pauloorquillo
Social
Twitter/X: / olopsman
Shot with Sony ZV-E10
amzn.to/3uVzPQt
My Workstation Setup
Macbook Pro 16 inch M1 Pro
amzn.to/3OdBqb7
Samsung 28-Inch 4K UHD Led-Lit Monitor
amzn.to/3H246Tc
Apple Magic Keyboard with Touch ID and Numeric Keypad
amzn.to/3Pwm6HF
if you are following along, there is no need to use sudo when editing the .zshrc file. simply run vi ~/.zschrc
After compiling below issue shown can you help me for this issue .
1 warning generated.
compiling ossl_hmac.c
In file included from ossl_hmac.c:10:
In file included from ./ossl.h:177:
./openssl_missing.h:195:11: warning: 'TS_VERIFY_CTS_set_certs' macro redefined [-Wmacro-redefined]
# define TS_VERIFY_CTS_set_certs(ctx, crts) ((ctx)->certs=(crts))
^
/usr/local/Cellar/openssl@3/3.1.3/include/openssl/ts.h:426:11: note: previous definition is here
# define TS_VERIFY_CTS_set_certs(ctx, cert) TS_VERIFY_CTX_set_certs(ctx,cert)
^
ossl_hmac.c:249:35: error: incomplete definition of type 'struct evp_md_ctx_st'
pkey = EVP_PKEY_CTX_get0_pkey(EVP_MD_CTX_get_pkey_ctx(ctx));
same issue appears to me... did you found any solution?@@premachithra5957
I was stuck with this problem for a few days now, was trying to setup environment for KMM. This video worked perfectly. Thank you so much for taking the time to create this video and explaining everything in detail.
thaaanx it work ...
note: if u face this problem "chruby: unknown Ruby: ruby-3.1.2" ,,, back to step that we write (sudo vi ~/.zshrc ) then change 3.1.2 to last version ... when i write this comment the last version is 3.2.1
dude, thank you so much. you saved me.
Work for me! After 4 hours of trying, you saved my life!
I have been trying for the past 3 days to solve the cocoapods error for flutter (Macbook Inter Ver); I installed it successfully. Thank you, Buddy! You are the best. 👍
Glad I could help!
i was stuck with this problem for almost a month, thanks to your video i was able to solve it.
THANK YOU SO MUCH!
You’re welcome
Thank you, you deserve way more than 131 likes for this!
thank you so much bro it really worked, from the last three I spend hours on RUclips tutorials none of them worked and finally I found this. thank you so much one again
Glad I could help
Such a helpful video. I was stuck and this helped me out. Thanks so much
Thank you so much! It's working!)) Best tutorial I could find for solve cocoapods installing problems!
good god this almost screwed my entire dev team over. But you saved the day!! Subscribed!! Thank you :D
Finally, this worked for me!
You are a lifesaver, thanks a lot!
For anyone who got an error during this, go check which brew, and If there is no/opt/homebrew/bin/brew, you gotta reinstall brew or change the install path, that is what I did before trying this video’s solution.
appreciated man this worked out after frustrating trying of full night
Such an amazing tutorial, thank you so much
Such an useful tutorial. Thanks!
Great video. Thanks for the easy to follow tutorial. You got me out of a real bind getting cocapods installed!
Glad I could help!
Thank you man, you saved my life. Great work!
Great help! Keep up the great work 🎉🎉
Wow THANK YOU VERY MUCH ! I was stucks for hours, try everything, nothing was working! But yours works, great video, I subscribe to your chanel !
Thank you very much, it works! Great detailed instructions!
thank you so much this was extremely helpful!
This totally helped me!! thank you so much!!
It's work for me, A very helpful instruction ! Very simple and clean !
Great to hear!
thank you so much ıv been traying to find a solution for ages
should update title to say "and intel macs too", this worked perfectly
Good to know! Cheers for that!
Thank you so much, I was stuck and this helped me out :)
Thank you so much! Works great.
Thank you sir,
Both video very helpful for me other people.
Lots of thanks
Thank you! worked for me , mac11.3 m1
Thank you man! This video needs to be bundled with every apple silicon mac being sold. LOL
thx, u are life savior, you got a new follower xx
thanks buddy works for me , a helpful video
/best best best solution it worked for me i've being trying it since 3 days and nothing worked for me then i found your video and give it a try.. Well Explained Thank you so much
amazing video bro it helped a lot
Thanks Buddy, very helpful
this video is amazing and easy thanks
Thank you so much for saving my time 😀
If you didn't make this video for us I could never fix this problem. Thanks!!
Thanks buddy! It works!
Thanks so much for this!
this helps me alot thanks bro
Awesome brother
Thanks for the help
such a helpful video, thanks a lot (:
Thank you for your video, it is simply incredible.
Tip for those new to programming: The command to write the last line of the file "vi ~/.zshrc or sudo vi ~/.zshrc", is:
"Shiff" + ":" = x! - Enter.
greetings.
thank you bro, you are the best dude who really helped me, health and success, thank you from the bottom of my heart
Man, really thank you for this!!! At first it didn't work, maybe you should mention in 4:55 that the CURRENT version should be typed in, since I'm doing this a half year later and 3.2.0 released, it will fail to update if your version is put in. Maybe you could add a RUclips-hint at this point, I'm sure some others will also fail. Thank you so much for this really, I've been struggling around with this for over 4 hours and searched my way to different forums cuz I couldn't make a unity build because wrong pods have been installed. You saved my day
he actually mentioned it at 2:28 but it is easy to miss! hope it helps.
Thanks Bro, You saved my lot of time.
Thanks for the help bro!!!!!!
Thank you bro. Work for me.
jaza k Allah khair brother ,really grateful
Thanks brother it worked✌🏻 You got a new Subscriber 🙂
Thanks for the sub
Thank you this is working for me
Thank you bro i was really losing my mind with this hahah
Thank you so much!! 👍
It works 💯 Thank you
worked like a charm
Day 1: Can't use flutter, can't download Cocoapods. Two calls to Apple support with no results. Tried everything else on the web, no results. Day 3: Finally, I can user Flutter now. THANK YOU SO MUCH!!!
great job bro
Thanks buddy you are the best
Amazing Bro!
thank you so much 💗💗
thank for sharing.
You are the greatest person for first day of 2024, i was hopeless for 2 months and stopped my project development. Your guide helped me very well. I hope new year will be great for you. Thanks for your efforts.
Glad I could help!
Hi did you use the latest version of ruby or the version in the video
I used lastet one, it was a newer version.@@ultrainstinctcoder6126
Thank you for your video, faced issue with Ruby installation
I used the command for Installation : ruby-install 3.1.2 -- --enable-shared
finally it worked for my MacBook Air M2
nice tip!
thanks you save my time
It works , thanks.
Absolute lifesaver, thank you!
Glad it helped!
Lifesaver Video
Thanks a lot buddy..!
Thanks a lot!
Thank you very much!!
Thank you!!
thank you so much really appreciated for the video
Glad it helped
absolutely like man, tnkyou vveeeery much
thanks, dude!
thanks a lot. it worked
Thank you so much!!!!!!!!!!!!!
Tank you so much!!!
wowwww! please continue
Thank you very much
THANKS MAN
Thx Man!
Dude, thanks! Been looking for a sollution for days. Had to buy a Mac just to put my app on the App Store. Having to do all this without any official documentation on these problems. Mac sucks!
THANK YOU.
Thank you
Thanks!
thank you man thank you thank you
Thank you so much. Bless you.
Same to you!
Thanks
Merci beaucoup 😊
Thank You
AHH Thank Youu So Muuch
you are captain cocopods
thanks
thanks
thank you so much from Russia
thank you
thank u bro
Thank you helped me
Glad it helped
Hello in addition had to add this 3.2.2 on .ruby-version file from project
thankz zir
Thank you! But, how did you know to do this?! Impressive. Without this i would have had to give up coding. What a mess. Thank you!!!!
thank you so much.
You're welcome!