找不到Pod的兼容版本 [英] could not find compatible versions for pod
问题描述
我是IOS开发和git的新手。将本地存储库与开发存储库合并后出现问题。合并后,当我构建项目时,我在Xcode中收到一条错误消息,沙箱与Podfile.lock不同步。运行'pod install'或更新您的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."
我对此进行了搜索,并尝试了通常的解决方案来重新安装吊舱。但是执行
I searched about this and tried the usual solution reinstalling the pods. But executing
pod install
我在终端机中遇到另一个错误,提示
I get another error in terminal that says
此时,我尝试删除与 FTPopOverMenu窗格关联的文件,然后使用 pod重新安装安装。错误不会消失。另外,我尝试以这种方式解决它-错误:在安装RestKit后,沙箱与Podfile.lock不同步... cocoapods
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
但是Xcode和终端中的错误仍然存在。我是IOS和Git的新手。我真的不明白这里到底发生了什么。
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.
推荐答案
根据我的猜测,您正在开发一个旧项目,这意味着已经在Xcode 8系列中开发,现在您正在使用最新的Xcode,并且已经相应地更新了代码。
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:-
- pod解体
- pod安装
- pod更新(如果您有所有最新的Pod,则有必要这样做,否则请不要使用它。)
它将删除所有旧的cocoapods痕迹。
It will remove all old cocoapods traces.
或替代方法(临时解决)
- 暂时删除该可可豆,在您完成所有工作后,将其添加到您的项目中,并在我的情况下给出尝试原因,这是我所做的唯一工作。
这篇关于找不到Pod的兼容版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!