diff: /../Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods in

在执行第三方demo的时候出现以下提示错误:

diff: /../Podfile.lock: No such file or directory

diff: /Manifest.lock: No such file or directory

error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

 百度之后得出以下方案:

方案一:

command+Q 退出 Xcode,重新执行pod install,之后再重新打开Xcode运行。

正常 方案一: 即可解决问题.

方案二:

稍微麻烦一点,删除以下文件:

xcworkspace
Podfile.lock
Pods文件夹
~/Library/Developer/Xcode/DerivedData路径下对应工程的文件夹

之后重新执行pod install --verbose --no-repo-update

方案三:
1.设置Configurations

选中Project->选择Info tab->看看Configurations是不是被设置为 None了,如果是None的话请改为Pods,如图:

2.修改Pods脚本文件路径:

  1. 右键工程根目录下的xxx.xcodeproj文件,显示包内容
  2. 双击打开project.pbxproj文件
  3. 查找"resources.sh", 把路径改为如下红框处:
  4. 重新打开工程(双击workspace文件),到此应该是能正常编译运行了.
方案四:

1.找到项目根目录下的Podfile.lock文件,和Pods文件夹下的Manifest.lock文件

2.然后复制Podfile.lock文件的内容替换掉Manifest.lock文件内的内容,好啦,至此问题解决

原文地址:https://www.cnblogs.com/jordanYang/p/6244031.html