添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

this works for me:

Step 1 (install HomeBrew)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh )

Step 2 (Run these two commands in your terminal to add Homebrew to your PATH)

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/”YOUR USER FORLDER”/.zprofile

eval "$(/opt/homebrew/bin/brew shellenv)"

Step 3 (now you can install cocoapods)

brew install cocoapods

Step 1:

Install brew

1. curl -fsSL -o install.sh https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
2. /bin/bash install.sh

Step 2:

brew install chruby ruby-install

Step 3:

brew install cocoapods

Step 4: (Check your cocoapods version):

brew upgrade cocoapods

Need Xcode Command Line Tools, if not installed then run this command: sudo xcode-select --install

It's works for me

I was getting this exact error mentioned.

In my case, the MacOs update for BigSur + Monterey update, solved the problem like a charm.

After Monterey got installed I could pod install normally with no more errors.

What I did was run the following and it seemed to work

gem install cocoapods --user-install

I guess from there you need to update your path to point to the user directory.

This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Developer Forums Participation Agreement and Apple provided code is subject to the Apple Sample Code License.
  • Forums
  • Terms of Use Privacy Policy License Agreements