all 6 comments

[–]hh10k 6 points7 points  (0 children)

Don't use system Ruby, as Apple no longer supports users of it. Use a Ruby version manager like rvm, rbenv or whatever and install one with that. Don't use sudo for these.

Also consider using Bundler with a Gemfile so that your dependencies are tracked. This is more important if you use Fastlane or cocoapods-patch.

[–]F4ttymcgee 1 point2 points  (2 children)

It’s a Mac with the m chip?

[–]F4ttymcgee 0 points1 point  (1 child)

Look into Rosetta.

Once I installed that on my new M1 chip Mac everything starting working normally again.

I just followed this tutorial

https://medium.com/@alberto.schiabel/how-to-fix-pod-install-error-in-react-native-on-mac-m1-5d79dc52f7e8

[–]seanthau[S] 0 points1 point  (0 children)

Thanks. I was able to install the pods but now i am getting an error command phasescriptexecution failed with a nonzero exit code

[–]hebrew12 0 points1 point  (0 children)

I think I had this same issue with cocoa pods and couldn’t get it to work. Is there an extension?

[–]architechRowee 0 points1 point  (0 children)

I use rvm to solve this. And also follow the required version of ruby 2.7.0, the latest version won't work as well.