解决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运行。
-
方案二:
稍微复杂一点,删除以下文件:
xcworkspace
Podfile.lock
Pods文件夹
~/Library/Developer/Xcode/DerivedData路径下对应工程的文件夹然后重新执行pod install
如果以上两个方案对你有用的话,恭喜你,下面的可以不用看了,如果你像我一样倒霉,仍然运行不起来的话,来来来,咱们继续