ios - 错误 : The sandbox is not in sync with the Podfile. 锁定。运行 'pod install' 或更新您的 CocoaPods 安装

标签 ios cocoapods

我没有使用 Pod。但我不小心安装了它并从我的项目存储库中删除了所有文件夹。 之后,编译时会显示此错误消息。 我在项目文件夹中搜索了 podfile.lock 文件但找不到。 那为什么会出现这样的错误 帮我解决一下。

最佳答案

可能还剩下一些与 CocoaPods 相关的文件和规则。您可以使用 pod deintegrate 命令从项目中删除 CocoaPods。请参阅https://guides.cocoapods.org/terminal/commands.html#pod_deintegrate

在执行此操作之前,请确保您的项目处于版本控制中或已备份,这样如果出现问题,您可以随时回滚。

关于ios - 错误 : The sandbox is not in sync with the Podfile. 锁定。运行 'pod install' 或更新您的 CocoaPods 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56110959/

相关文章:

ios - Apple Mach-O-Linker 错误 CocoaPods

swift - 链接器命令失败,退出代码为 1(尚未更改项目名称)

ios - 从 MPMediaItem 转换 URL

ios - 仅将圆角添加到 UITableView 的顶部?

ios - 如何重新加载 tableviewcell 中的 collectionview

ios - 如何解决链接器命令错误?

cocoapods - 使用 Cocoapods 时如何包含我自己的 xcconfigs?

ios - `pod setup` 消耗大量磁盘空间

iOS 心率检测算法

iphone - 游戏设计 : handling different game types?