0

I hope you all are doing well.

I'm facing issue while trying to init the pod in the project. Cocoapods is already installed in the system. XCode Dev intstall is also there, In XCode in command line the xcode version is also selected. Don't know what I'm missing. I have MacOS BigSur.

If I run pod --version command on terminal it gives me version of 1.8.4.

I'm attaching the screenshot if someone has faced this issue.

enter image description here

Adnan Khan
  • 25
  • 7
  • 1
    You are omitting the full error just before. But did you check the suggested links? Current version is `1.11.2`, you don't want/can't to update? – Larme Mar 09 '22 at 17:43
  • I tried the same but not able to update that. – Adnan Khan Mar 10 '22 at 17:28
  • `gem update xcodeproj` didn't work? Did you update CocoaPods? – Larme Mar 10 '22 at 17:43
  • It didnt work, however I resolve the issue, Un-Install the brew & reinstall it, after that giving me error like cant written the file on this path conflicting with some other path, so I forcefully linked the new brew path. & it worked. – Adnan Khan Mar 10 '22 at 18:09
  • Now my pod version is 1.11.2 – Adnan Khan Mar 10 '22 at 18:09
  • Thanks somewhere your comment also helped to focused on the error description, to be honest. – Adnan Khan Mar 10 '22 at 18:10

1 Answers1

0

I have the same issue. I solved it by following these steps:

  1. First uninstall cocoapods with the command:
brew uninstall cocoapods
  1. Reinstall Cocoapods:
sudo gem install cocoapods
Taimoor Arif
  • 750
  • 3
  • 19