解决项目cocoapods diff: ..Podfile.lock: No such file or directory

mac2022-06-30  144

解决cocoapods diff: /../Podfile.lock: No such file or directory

最近把以前代码放到新电脑上运行,在执行pod update之后build工程遇到如下提示:

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.
方案一:

关闭Xcode,重新执行pod install,之后再重新打开Xcode运行。

方案二:

稍微复杂一点,删除以下文件:

xcworkspacePodfile.lockPods文件夹~/Library/Developer/Xcode/DerivedData路径下对应工程的文件夹

然后重新执行pod install

如果以上两个方案对你有用的话,恭喜你,下面的可以不用看了,如果你像我一样倒霉,仍然运行不起来的话,来来来,咱们继续

转载于:https://www.cnblogs.com/Stone-Yuan/p/6875244.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)