Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

could not find compatible versions for pod

Tags:

git

ios

cocoapods

I am new in IOS development and git. I am having a problem after merging my local repo to the dev repo. After merging when I build the project I get an error in the Xcode that says, "The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation."

Build Error

I searched about this and tried the usual solution reinstalling the pods. But executing

pod install 

I get another error in terminal that says

Terminal Error

At this point I tried deleting the files associated with the "FTPopOverMenu" pod and reinstalling with pod install. The error doesn't go away. Also, I tried solving it in this way - Error:“The sandbox is not in sync with the Podfile.lock…” after installing RestKit with cocoapods

But both error in the Xcode and in the terminal still remains. I'm new to IOS and Git. I really don't understand what is really happening here.

like image 853
Somoy Das Gupta Avatar asked Feb 06 '18 07:02

Somoy Das Gupta


People also ask

How do I update my pods on my Mac?

Use pod install to install new pods in your project. Even if you already have a Podfile and ran pod install before; so even if you are just adding/removing pods to a project already using CocoaPods. Use pod update [PODNAME] only when you want to update pods to a newer version.


1 Answers

As per my guess you are working on an old project means which is already developed in Xcode 8 series and now you are working with latest Xcode and you have updated the code accordingly.

So just do the below steps:

  1. "pod deintegrate"
  2. "pod install"
  3. "pod update" (if it is necessary so do it else if you have all latest pod so don't use it.)

It will remove all old cocoapods traces.

OR Alternate way to do it (Temp Work Around)

  • Remove that cocoa pod temporary, after all your work finish add to your project and give a try cause in my case it is the only work around i have that worked.
like image 70
Ravi Panchal Avatar answered Sep 24 '22 04:09

Ravi Panchal