我正在尝试从项目中删除POD。删除所有文件和所有收到此消息的所有文件
之后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.
我试图从项目中删除POD,重新安装它们,从构建阶段中删除脚本,什么都没有起作用。
从POD文件中删除POD,然后重新安装POD
开放终端和类型
cd ~/projectDirectoryPath
然后键入
open -a Xcode Podfile
这将打开Podfile
删除行
pod 'Alamofire'
然后保存文件(Alamofire只是一个示例)
在终端类型
中pod install
这应该更新项目并删除不需要的POD文件。
好吧,我修复了它。
只需使用此工具https://github.com/kylef/cocoapods-deintegrate,现在一切正常!
只是为了简化Aviv提到的内容,如果您想从项目中完全删除所有POD的所有轨迹,然后只需从项目文件夹中删除所有与POD相关的文件并运行:
sudo gem install cocoapods-deintegrate
pod deintegrate
和sandbox podfile.lock错误应消失。
从project
中删除POD开放终端并运行这些脚本
$ pod deintegrate
$ pod clean
$ rm Podfile
最后但不租赁,
remove the projectFile.xcworkspace from the project