Skip to main content
remove redundancy, fix the double hyphen bug
Source Link

Install CocoaPods Using Homebrew in macOS Monterey

  1. Open terminal

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

  3. Install CocoaPods brew install cocoapods

  4. If you get the error as below., you may want to remove it: rm /usr/local/bin/xcodeproj

    Error: Could not symlink bin/xcodeproj Target /usr/local/bin/xcodeproj already exists. You may want to remove it: rm '/usr/local/bin/xcodeproj'

  5. Run this command rm '/usr/local/bin/xcodeproj'

  6. Run this command to force the link and overwrite all conflicting files: brew link --overwrite cocoapods

  7. Now check pod —version—-version, it will show installed pod version

Install CocoaPods Using Homebrew in macOS Monterey

  1. Open terminal

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

  3. Install CocoaPods brew install cocoapods

  4. If you get the error as below.

    Error: Could not symlink bin/xcodeproj Target /usr/local/bin/xcodeproj already exists. You may want to remove it: rm '/usr/local/bin/xcodeproj'

  5. Run this command rm '/usr/local/bin/xcodeproj'

  6. Run this command to force the link and overwrite all conflicting files: brew link --overwrite cocoapods

  7. Now check pod —version, it will show installed pod version

Install CocoaPods Using Homebrew in macOS Monterey

  1. Open terminal

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

  3. Install CocoaPods brew install cocoapods

  4. If you get the error as below, you may want to remove it: rm /usr/local/bin/xcodeproj

    Error: Could not symlink bin/xcodeproj Target /usr/local/bin/xcodeproj already exists.

  5. Run this command to force the link and overwrite all conflicting files: brew link --overwrite cocoapods

  6. Now check pod —-version, it will show installed pod version

Source Link
Arshad Shaik
  • 1.3k
  • 18
  • 19

Install CocoaPods Using Homebrew in macOS Monterey

  1. Open terminal

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

  3. Install CocoaPods brew install cocoapods

  4. If you get the error as below.

    Error: Could not symlink bin/xcodeproj Target /usr/local/bin/xcodeproj already exists. You may want to remove it: rm '/usr/local/bin/xcodeproj'

  5. Run this command rm '/usr/local/bin/xcodeproj'

  6. Run this command to force the link and overwrite all conflicting files: brew link --overwrite cocoapods

  7. Now check pod —version, it will show installed pod version