How to Fix Cocoapods Install Errors on an Apple Silicon Macs

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

ความคิดเห็น • 233

  • @JustAnotherDangHowToChannel
    @JustAnotherDangHowToChannel  2 ปีที่แล้ว +7

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

    • @premachithra5957
      @premachithra5957 ปีที่แล้ว +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 ปีที่แล้ว

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

    • @VinayakTrigunayat
      @VinayakTrigunayat 4 หลายเดือนก่อน

      Your tutorial was fantastic, but you misspelled the command in this comment, it's vi ~/.zshrc
      One thing worth mentioning is that you have to run vi ~/.zshrc when you are in the home directory, you can run cd ~ before running this command to get to the home directory.

  • @theghosthuntergal
    @theghosthuntergal หลายเดือนก่อน +1

    Why have only 1k people found this video? :) You rock!! Thank you so much! :)

  • @asadullahilyas
    @asadullahilyas ปีที่แล้ว +7

    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.

  • @たけのこ-e8q2b
    @たけのこ-e8q2b 8 หลายเดือนก่อน +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.

  • @sultantofoman
    @sultantofoman ปีที่แล้ว +7

    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

    • @ritaabbruzzi6527
      @ritaabbruzzi6527 5 หลายเดือนก่อน +1

      dude, thank you so much. you saved me.

  • @redxblood85
    @redxblood85 2 ปีที่แล้ว +3

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

  • @yecoof
    @yecoof 11 หลายเดือนก่อน +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  10 หลายเดือนก่อน

      Glad I could help!

    • @GameDevForLife
      @GameDevForLife 10 หลายเดือนก่อน

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

    • @yecoof
      @yecoof 10 หลายเดือนก่อน

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

  • @MrVanhovey
    @MrVanhovey ปีที่แล้ว +3

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

  • @findrashid-op5zo
    @findrashid-op5zo หลายเดือนก่อน

    I am new on macbook m3 and was struggling to install cocapods last 2 days untill I see your vlog. Thankyou co much.

  • @Iam_rayhutch
    @Iam_rayhutch 2 หลายเดือนก่อน

    Thank you so much for creating this video! I am new to developing and I was getting increasingly frustrated with all the info out there that doesn't work. Your video was simple and easy to follow and it worked!

  • @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 TH-cam-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.

  • @reece5863
    @reece5863 ปีที่แล้ว +3

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

  • @Thesaeedahmad
    @Thesaeedahmad ปีที่แล้ว

    thank you so much bro it really worked, from the last three I spend hours on TH-cam tutorials none of them worked and finally I found this. thank you so much one again

  • @AlonsoMtz-s9m
    @AlonsoMtz-s9m ปีที่แล้ว +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!

  • @salvatorecasalino2253
    @salvatorecasalino2253 ปีที่แล้ว +1

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

  • @sevengraphicstudio8750
    @sevengraphicstudio8750 2 ปีที่แล้ว

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

  • @hasancanbalay
    @hasancanbalay 10 หลายเดือนก่อน +1

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

  • @kevinospina4726
    @kevinospina4726 ปีที่แล้ว +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.

    • @NuraOsmonaliev
      @NuraOsmonaliev ปีที่แล้ว

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

  • @kenb1
    @kenb1 ปีที่แล้ว +1

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

  • @matthewjdoyle
    @matthewjdoyle 10 หลายเดือนก่อน

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

  • @amadzarak7746
    @amadzarak7746 ปีที่แล้ว

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

  • @nishantmunjal4946
    @nishantmunjal4946 ปีที่แล้ว +3

    Thanks man. For me, version worked and the command "ruby-install --update ruby" worked.

    • @yaarob988
      @yaarob988 ปีที่แล้ว

      thanks man I was stuck on this part

  • @vvenkateshgajjela4847
    @vvenkateshgajjela4847 2 ปีที่แล้ว

    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

  • @hkpatnaik
    @hkpatnaik ปีที่แล้ว +3

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

  • @girishusakoyala49
    @girishusakoyala49 ปีที่แล้ว +4

    still not able to resolve the issue as i am getting same filePermissionError and the only difference i see is the difference in ruby version where after restarting terminal in the video your ruby version was 3.1.2 but mine was same as before can you please help me out with this issue as nothing seems to be working

    • @luiscarlospxr
      @luiscarlospxr หลายเดือนก่อน

      could you solve the issue. I am having the same here.

    • @girishusakoyala49
      @girishusakoyala49 หลายเดือนก่อน

      @@luiscarlospxr i just removed everything and installed cocoa pods using home brew it’s way to easier than this headache. I’d suggest you the same

  • @petbarik
    @petbarik 10 หลายเดือนก่อน +1

    I'am stuck because i didn't wich key ned I press to exit form instert mod. I am trying with every keys and shortcuts but they have not function.
    Please help!!!

  • @taco_t8881
    @taco_t8881 4 หลายเดือนก่อน

    I'm following all of your steps and it is a great tutorial but I still show the old version of ruby even after restarting the terminal?

  • @katekashko3684
    @katekashko3684 ปีที่แล้ว

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

  • @muhammeteminyldz5907
    @muhammeteminyldz5907 ปีที่แล้ว +2

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

  • @SouravDas-nb9ku
    @SouravDas-nb9ku 4 หลายเดือนก่อน

    Worked, great video. Made my day, thanks.

  • @abulhossain5077
    @abulhossain5077 2 หลายเดือนก่อน

    Even after relaunching terminal old version is showing. Need help

  • @melvinsagini1198
    @melvinsagini1198 หลายเดือนก่อน

    great tutorial, you saved the day

  • @wisdomisaac7819
    @wisdomisaac7819 ปีที่แล้ว +2

    I followed through from the homebrew video but still got the error: chruby: unknown Ruby: ruby-3.1.2. Is there something I must have done wrong here? Please point me in the right direction. Thanks!

    • @praveen000015
      @praveen000015 ปีที่แล้ว

      please put latest downloaded ruby version

    • @philosophe2517
      @philosophe2517 ปีที่แล้ว

      @@praveen000015 what do yo mean ?

  • @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

  • @yudhistheraryan5844
    @yudhistheraryan5844 ปีที่แล้ว +2

    Great help! Keep up the great work 🎉🎉

  • @hakanakyuz6443
    @hakanakyuz6443 ปีที่แล้ว

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

  • @AnkurSharma-dd9cy
    @AnkurSharma-dd9cy ปีที่แล้ว

    appreciated man this worked out after frustrating trying of full night

  • @ILKACASELYRICS
    @ILKACASELYRICS ปีที่แล้ว

    this video is amazing and easy thanks

  • @garimellateja3919
    @garimellateja3919 ปีที่แล้ว

    after i quit the terminal and restart it, the ruby version is just showing the default ones i.e 2.6

  • @sebastianalfaro1887
    @sebastianalfaro1887 4 หลายเดือนก่อน

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

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

  • @anbari-3737
    @anbari-3737 4 หลายเดือนก่อน

    Is this work on MacBook M3?

  • @yurialenccar
    @yurialenccar ปีที่แล้ว +2

    Such an useful tutorial. Thanks!

  • @philosophe2517
    @philosophe2517 ปีที่แล้ว

    For the error that ruby --version is the same as before, tap: brew install ruby 3.1.2
    (I'm not sure of the exact syntax, see the comments)
    For the error pod --version, tap :
    Open Terminal
    Type open ~/.zshrc (or open ~/.profile if you don't use zsh)
    It seems that LANG="en_US.UTF-8" alone isn't enough, so you have to set:
    export LANG=en_US.UTF-8
    export LANGUAGE=en_US.UTF-8
    export LC_ALL=en_US.UTF-8

  • @tunjiajanaku
    @tunjiajanaku ปีที่แล้ว

    ruby is successfully updating but the version still remains the same
    what can i do to resole that (Using M2 SONOMA)

  • @surendravishwakarma5244
    @surendravishwakarma5244 ปีที่แล้ว

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

  • @sayemmohammad6364
    @sayemmohammad6364 2 ปีที่แล้ว +2

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

  • @ming-l8r
    @ming-l8r ปีที่แล้ว

    yeah, and may be can try install cocoapods directly with brew

  • @Tomsar95
    @Tomsar95 ปีที่แล้ว

    All the tutorial worked for me but inside android studio it still throws the error: "Error running pod install" when I run the app... any advice? thanks

  • @ta2090
    @ta2090 ปีที่แล้ว

    Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!

  • @ZacharyHarnish
    @ZacharyHarnish ปีที่แล้ว +2

    Such an amazing tutorial, thank you so much

  • @irem4198
    @irem4198 ปีที่แล้ว +1

    thank you so much this was extremely helpful!

  • @radeox98
    @radeox98 ปีที่แล้ว

    currently 3 days into try and install, stuck at install latest ruby " command not found ruby-install" pls help...

  • @SakshiBala-ni4kg
    @SakshiBala-ni4kg 10 หลายเดือนก่อน

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

  • @prahladamaharaja
    @prahladamaharaja ปีที่แล้ว +1

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

  • @absoluteparagon
    @absoluteparagon ปีที่แล้ว +1

    Thanks so much for this!

  • @eddymunoz9803
    @eddymunoz9803 ปีที่แล้ว +1

    before you write chruby ruby-3.1.2 you push Shift + what?? .... i can't understand

  • @vineetkapil1646
    @vineetkapil1646 ปีที่แล้ว

    Not able to install ruby latest because of google santa interruption even after voting enabled:
    This application has been blocked from executing. Please use Precinct to vote to have this application added to the whitelist.

  • @radekjestrabik8507
    @radekjestrabik8507 5 หลายเดือนก่อน

    Thank you so much! Works great.

  • @Didier_Cruz
    @Didier_Cruz ปีที่แล้ว

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

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

  • @XoaInfoIOS
    @XoaInfoIOS ปีที่แล้ว

    Thank you! worked for me , mac11.3 m1

  • @JetpackD
    @JetpackD 2 ปีที่แล้ว +1

    thank you so much from Russia

  • @surajsuryawanshi7835
    @surajsuryawanshi7835 11 หลายเดือนก่อน

    Thanks Bro, You saved my lot of time.

  • @szelest88
    @szelest88 ปีที่แล้ว

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

  • @gdsantos2002
    @gdsantos2002 11 หลายเดือนก่อน +1

    Thanks a lot!

  • @ameykulkarni1624
    @ameykulkarni1624 10 หลายเดือนก่อน +1

    Lifesaver Video

  • @andarklv1185
    @andarklv1185 ปีที่แล้ว

    Hi, guys, have you tried to install cocoapods on mac sonoma beta? I made a try,but stopped on installing ruby.

  • @XoaInfoIOS
    @XoaInfoIOS ปีที่แล้ว

    if openssl error can run it : brew install openssl

  • @yscode2747
    @yscode2747 ปีที่แล้ว

    thanks buddy works for me , a helpful video

  • @ranaabdulhaseeb8637
    @ranaabdulhaseeb8637 11 หลายเดือนก่อน

    Thanks Buddy, very helpful

  • @sanashaikh4066
    @sanashaikh4066 2 ปีที่แล้ว

    after successfully installing the latest version when i run the command ruby --verion it show the older version
    please help

    • @shimaakhairy7828
      @shimaakhairy7828 2 ปีที่แล้ว

      try this ruby-install 3.1.2 -- --enable-shared

  • @vikramkunwar1703
    @vikramkunwar1703 2 ปีที่แล้ว

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

  • @harnesspositivity
    @harnesspositivity 9 หลายเดือนก่อน +1

    Thanks

  • @DonCaster-g1z
    @DonCaster-g1z ปีที่แล้ว

    worked like a charm

  • @karishmapatel2226
    @karishmapatel2226 ปีที่แล้ว

    Thank you so much for saving my time 😀

  • @antonioalejos9092
    @antonioalejos9092 ปีที่แล้ว

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

  • @Manishdahiyavlogs
    @Manishdahiyavlogs ปีที่แล้ว +1

    bro i did all well but in last it shows this error 1 warning and 1 error generated.
    make[2]: *** [ossl_hmac.o] Error 1
    make[1]: *** [ext/openssl/all] Error 2
    make: *** [build-ext] Error 2
    !!! Compiling ruby 3.2.2 failed!

  • @faezansar5417
    @faezansar5417 ปีที่แล้ว

    jaza k Allah khair brother ,really grateful

  • @MusaddiqRafi
    @MusaddiqRafi 6 หลายเดือนก่อน

    Thanks buddy! It works!

  • @ThinkArc
    @ThinkArc ปีที่แล้ว

    amazing video bro it helped a lot

  • @richardsangohil
    @richardsangohil ปีที่แล้ว

    Thank you this is working for me

  • @K.Huynh.
    @K.Huynh. ปีที่แล้ว

    thank for sharing.

  • @GameDevForLife
    @GameDevForLife 10 หลายเดือนก่อน

    you are captain cocopods
    thanks

  • @chaordo
    @chaordo ปีที่แล้ว

    Absolute lifesaver, thank you!

  • @aswinbudhathoki6524
    @aswinbudhathoki6524 ปีที่แล้ว +2

    Anyone facing this issue.
    1 warning and 1 error generated.
    make[2]: *** [ossl_hmac.o] Error 1
    make[1]: *** [ext/openssl/all] Error 2
    make: *** [build-ext] Error 2
    !!! Compiling ruby 3.2.2 failed!

  • @eslamali4066
    @eslamali4066 2 ปีที่แล้ว +1

    this helps me alot thanks bro

  • @lanabaydar3917
    @lanabaydar3917 2 ปีที่แล้ว

    Hey there, thanks a lot, very helpful instructions. But when I finish all the steps and type ruby-install to terminal, I get the following error:
    'zsh: command not found: ruby-install' . What do I need to do, please help . (MacBook Air M2)

    • @JustAnotherDangHowToChannel
      @JustAnotherDangHowToChannel  2 ปีที่แล้ว

      if it says command not found, it could mean it was not added installed properly or not added the path. run --> brew list to see the apps installed by homebrew.. if you can't see it there run the install command again.

  • @putjocmon
    @putjocmon 6 หลายเดือนก่อน

    ruby: invalid option -3 (-h will show valid options) (RuntimeError)

  • @GaborSzabo-g1y
    @GaborSzabo-g1y หลายเดือนก่อน

    Thanks! very helpfull!

  • @muhammednasarudheen5126
    @muhammednasarudheen5126 ปีที่แล้ว

    pod --version
    zsh: command not found: pod
    only didnt works on the last step

    • @philosophe2517
      @philosophe2517 ปีที่แล้ว

      Open Terminal
      Type open ~/.zshrc (or open ~/.profile if you don't use zsh)
      It seems that LANG="en_US.UTF-8" alone isn't enough, so you have to set:
      export LANG=en_US.UTF-8
      export LANGUAGE=en_US.UTF-8
      export LC_ALL=en_US.UTF-8

  • @neelarai5920
    @neelarai5920 ปีที่แล้ว

    thank you so much really appreciated for the video

  • @aliroshdy1390
    @aliroshdy1390 ปีที่แล้ว

    i receive the message successfully installed Ruby 3.2.2 but we i quit the terminal and open it again it still refers to the old Ruby version 2.6.0 why that?

    • @JesusLopez-yu5ff
      @JesusLopez-yu5ff ปีที่แล้ว

      where you able to solve this issue? I am having the same problem

    • @Spiderfish7
      @Spiderfish7 ปีที่แล้ว

      @@JesusLopez-yu5ff still having the same issue, have you solved it?

    • @taco_t8881
      @taco_t8881 4 หลายเดือนก่อน

      Same problem

  • @artembislyuk4160
    @artembislyuk4160 2 ปีที่แล้ว

    Please tell me, when a new version of Ruby is released, will it be necessary to edit the new version in the .zhrs file?

  • @omarbarkat1937
    @omarbarkat1937 6 หลายเดือนก่อน

    great job bro

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

  • @poteryal_trusy
    @poteryal_trusy ปีที่แล้ว

    absolutely like man, tnkyou vveeeery much

  • @yashsaxena1473
    @yashsaxena1473 2 ปีที่แล้ว

    Awesome brother
    Thanks for the help

  • @redouaneamour5079
    @redouaneamour5079 2 ปีที่แล้ว

    Hi ! The first part worked for me but at the very end of your tutorial when I enter the command "pod --version" it does not work and shows :
    "rescue in block in activate_dependencies': Could not find 'json' (>= 1.5.1) among 59 total gem(s) (Gem::MissingSpecError)"
    Can you please help me ?

    • @prabinmaharjan5150
      @prabinmaharjan5150 ปีที่แล้ว

      i am facing same issue...have you got the solution

  • @희진-d3u
    @희진-d3u 2 ปีที่แล้ว +1

    Thank you so much!! 👍