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

Комментарии • 219

  • @JustAnotherDangHowToChannel
    @JustAnotherDangHowToChannel  Год назад +7

    if you are following along, there is no need to use sudo when editing the .zshrc file. simply run vi ~/.zschrc

    • @premachithra5957
      @premachithra5957 9 месяцев назад +1

      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));

    • @mohanadabdullah1420
      @mohanadabdullah1420 9 месяцев назад

      same issue appears to me... did you found any solution?@@premachithra5957

  • @asadullahilyas
    @asadullahilyas Год назад +6

    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.

  • @sultantofoman
    @sultantofoman Год назад +5

    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

  • @salvatorecasalino2253
    @salvatorecasalino2253 Год назад +1

    Work for me! After 4 hours of trying, you saved my life!

  • @sevengraphicstudio8750
    @sevengraphicstudio8750 Год назад

    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. 👍

  • @user-us2sv6he4c
    @user-us2sv6he4c Год назад +1

    i was stuck with this problem for almost a month, thanks to your video i was able to solve it.
    THANK YOU SO MUCH!

  • @kenb1
    @kenb1 Год назад +1

    Thank you, you deserve way more than 131 likes for this!

  • @Thesaeedahmad
    @Thesaeedahmad Год назад

    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

  • @hkpatnaik
    @hkpatnaik Год назад +2

    Such a helpful video. I was stuck and this helped me out. Thanks so much

  • @katekashko3684
    @katekashko3684 11 месяцев назад

    Thank you so much! It's working!)) Best tutorial I could find for solve cocoapods installing problems!

  • @reece5863
    @reece5863 Год назад +3

    good god this almost screwed my entire dev team over. But you saved the day!! Subscribed!! Thank you :D

  • @user-tw2yi1nf1i
    @user-tw2yi1nf1i 3 месяца назад +1

    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.

  • @AnkurSharma-dd9cy
    @AnkurSharma-dd9cy Год назад

    appreciated man this worked out after frustrating trying of full night

  • @ZacharyHarnish
    @ZacharyHarnish Год назад +2

    Such an amazing tutorial, thank you so much

  • @yurialenccar
    @yurialenccar Год назад +2

    Such an useful tutorial. Thanks!

  • @matthewjdoyle
    @matthewjdoyle 5 месяцев назад

    Great video. Thanks for the easy to follow tutorial. You got me out of a real bind getting cocapods installed!

  • @muhammeteminyldz5907
    @muhammeteminyldz5907 Год назад +2

    Thank you man, you saved my life. Great work!

  • @yudhistheraryan5844
    @yudhistheraryan5844 Год назад +2

    Great help! Keep up the great work 🎉🎉

  • @jean-charlesd3030
    @jean-charlesd3030 Год назад

    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 !

  • @szelest88
    @szelest88 9 месяцев назад

    Thank you very much, it works! Great detailed instructions!

  • @irem4198
    @irem4198 Год назад +1

    thank you so much this was extremely helpful!

  • @antonioalejos9092
    @antonioalejos9092 Год назад

    This totally helped me!! thank you so much!!

  • @sayemmohammad6364
    @sayemmohammad6364 Год назад +2

    It's work for me, A very helpful instruction ! Very simple and clean !

  • @hakanakyuz6443
    @hakanakyuz6443 Год назад

    thank you so much ıv been traying to find a solution for ages

  • @redxblood85
    @redxblood85 Год назад +3

    should update title to say "and intel macs too", this worked perfectly

  • @SakshiBala-ni4kg
    @SakshiBala-ni4kg 6 месяцев назад

    Thank you so much, I was stuck and this helped me out :)

  • @radekjestrabik8507
    @radekjestrabik8507 28 дней назад

    Thank you so much! Works great.

  • @surendravishwakarma5244
    @surendravishwakarma5244 9 месяцев назад

    Thank you sir,
    Both video very helpful for me other people.
    Lots of thanks

  • @XoaInfoIOS
    @XoaInfoIOS 11 месяцев назад

    Thank you! worked for me , mac11.3 m1

  • @amadzarak7746
    @amadzarak7746 9 месяцев назад

    Thank you man! This video needs to be bundled with every apple silicon mac being sold. LOL

  • @prahladamaharaja
    @prahladamaharaja Год назад +1

    thx, u are life savior, you got a new follower xx

  • @yscode2747
    @yscode2747 Год назад

    thanks buddy works for me , a helpful video

  • @mahnoorwaheed99
    @mahnoorwaheed99 Год назад

    /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

  • @ThinkArc
    @ThinkArc Год назад

    amazing video bro it helped a lot

  • @ranaabdulhaseeb8637
    @ranaabdulhaseeb8637 6 месяцев назад

    Thanks Buddy, very helpful

  • @ILKACASELYRICS
    @ILKACASELYRICS Год назад

    this video is amazing and easy thanks

  • @karishmapatel2226
    @karishmapatel2226 Год назад

    Thank you so much for saving my time 😀

  • @hasancanbalay
    @hasancanbalay 6 месяцев назад +1

    If you didn't make this video for us I could never fix this problem. Thanks!!

  • @MusaddiqRafi
    @MusaddiqRafi Месяц назад

    Thanks buddy! It works!

  • @absoluteparagon
    @absoluteparagon 8 месяцев назад +1

    Thanks so much for this!

  • @eslamali4066
    @eslamali4066 Год назад +1

    this helps me alot thanks bro

  • @yashsaxena1473
    @yashsaxena1473 Год назад

    Awesome brother
    Thanks for the help

  • @ahmedalhelali6890
    @ahmedalhelali6890 Год назад

    such a helpful video, thanks a lot (:

  • @kevinospina4726
    @kevinospina4726 9 месяцев назад +2

    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.

    • @user-nn5dj2zm6g
      @user-nn5dj2zm6g 8 месяцев назад

      thank you bro, you are the best dude who really helped me, health and success, thank you from the bottom of my heart

  • @gushhle
    @gushhle Год назад +3

    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

    • @Elif-ww1fw
      @Elif-ww1fw Год назад +1

      he actually mentioned it at 2:28 but it is easy to miss! hope it helps.

  • @surajsuryawanshi7835
    @surajsuryawanshi7835 7 месяцев назад

    Thanks Bro, You saved my lot of time.

  • @theunblunt
    @theunblunt Год назад

    Thanks for the help bro!!!!!!

  • @muratyo3109
    @muratyo3109 Год назад

    Thank you bro. Work for me.

  • @faezansar5417
    @faezansar5417 Год назад

    jaza k Allah khair brother ,really grateful

  • @vikramkunwar1703
    @vikramkunwar1703 Год назад

    Thanks brother it worked✌🏻 You got a new Subscriber 🙂

  • @richardsangohil
    @richardsangohil 11 месяцев назад

    Thank you this is working for me

  • @sebastianalfaro1887
    @sebastianalfaro1887 4 дня назад

    Thank you bro i was really losing my mind with this hahah

  • @user-eg7hg3ke4j
    @user-eg7hg3ke4j Год назад +1

    Thank you so much!! 👍

  • @serhatyazc7686
    @serhatyazc7686 Год назад

    It works 💯 Thank you

  • @user-td8qf9gt1o
    @user-td8qf9gt1o 8 месяцев назад

    worked like a charm

  • @MrVanhovey
    @MrVanhovey Год назад +2

    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!!!

  • @omarbarkat1937
    @omarbarkat1937 2 месяца назад

    great job bro

  • @tharindurajanayake83
    @tharindurajanayake83 Год назад

    Thanks buddy you are the best

  • @TriSoftGames
    @TriSoftGames 16 дней назад

    Amazing Bro!

  • @muhammedeneskarasakz8045
    @muhammedeneskarasakz8045 4 месяца назад +1

    thank you so much 💗💗

  • @K.Huynh.
    @K.Huynh. 8 месяцев назад

    thank for sharing.

  • @yecoof
    @yecoof 6 месяцев назад +1

    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.

    • @JustAnotherDangHowToChannel
      @JustAnotherDangHowToChannel  6 месяцев назад

      Glad I could help!

    • @ultrainstinctcoder6126
      @ultrainstinctcoder6126 6 месяцев назад

      Hi did you use the latest version of ruby or the version in the video

    • @yecoof
      @yecoof 6 месяцев назад

      I used lastet one, it was a newer version.@@ultrainstinctcoder6126

  • @vvenkateshgajjela4847
    @vvenkateshgajjela4847 Год назад

    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

  • @anandpandey4378
    @anandpandey4378 Год назад +1

    It works , thanks.

  • @chaordo
    @chaordo Год назад

    Absolute lifesaver, thank you!

  • @ameykulkarni1624
    @ameykulkarni1624 6 месяцев назад +1

    Lifesaver Video

  • @nikkbhateja892
    @nikkbhateja892 Год назад

    Thanks a lot buddy..!

  • @gdsantos2002
    @gdsantos2002 7 месяцев назад +1

    Thanks a lot!

  • @loscoches2662
    @loscoches2662 Год назад

    Thank you very much!!

  • @lidoazul
    @lidoazul 3 месяца назад

    Thank you!!

  • @neelarai5920
    @neelarai5920 10 месяцев назад

    thank you so much really appreciated for the video

  • @poteryal_trusy
    @poteryal_trusy Год назад

    absolutely like man, tnkyou vveeeery much

  • @jacsdev
    @jacsdev Год назад +1

    thanks, dude!

  • @suneetnripendra7839
    @suneetnripendra7839 Год назад

    thanks a lot. it worked

  • @andrewnguyen6396
    @andrewnguyen6396 Год назад +1

    Thank you so much!!!!!!!!!!!!!

  • @mariusholle8380
    @mariusholle8380 8 месяцев назад

    Tank you so much!!!

  • @agataageeva424
    @agataageeva424 Год назад

    wowwww! please continue

  • @duytanthytho4893
    @duytanthytho4893 Год назад

    Thank you very much

  • @otro_tema2529
    @otro_tema2529 8 месяцев назад

    THANKS MAN

  • @arturpolachowski6255
    @arturpolachowski6255 Месяц назад

    Thx Man!

  • @Steedie
    @Steedie Год назад

    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!

  • @DesiLofi
    @DesiLofi Год назад

    THANK YOU.

  • @emankj7657
    @emankj7657 Год назад

    Thank you

  • @navirobayo
    @navirobayo 2 месяца назад

    Thanks!

  • @zic8424
    @zic8424 Год назад

    thank you man thank you thank you

  • @JesusIsLord-
    @JesusIsLord- Год назад

    Thank you so much. Bless you.

  • @jassgrewal3791
    @jassgrewal3791 5 месяцев назад +1

    Thanks

  • @tlilihamdi3603
    @tlilihamdi3603 4 месяца назад

    Merci beaucoup 😊

  • @srikanthreddyyeddula7660
    @srikanthreddyyeddula7660 Год назад

    Thank You

  • @muhendis_
    @muhendis_ 3 месяца назад

    AHH Thank Youu So Muuch

  • @ultrainstinctcoder6126
    @ultrainstinctcoder6126 6 месяцев назад

    you are captain cocopods
    thanks

  • @yevinwarnapura4539
    @yevinwarnapura4539 4 месяца назад +1

    thanks

  • @JetpackD
    @JetpackD Год назад +1

    thank you so much from Russia

  • @selahattinedin5035
    @selahattinedin5035 Год назад

    thank you

  • @amrhassan2079
    @amrhassan2079 Год назад

    thank u bro

  • @mohamedabdullahi4682
    @mohamedabdullahi4682 Год назад

    Thank you helped me

  • @Didier_Cruz
    @Didier_Cruz Год назад

    Hello in addition had to add this 3.2.2 on .ruby-version file from project

  • @salmaansaed5698
    @salmaansaed5698 Год назад

    thankz zir

  • @stotchmania
    @stotchmania Год назад

    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!!!!

  • @fatmayildizakcicek
    @fatmayildizakcicek Год назад

    thank you so much.