Avi*_*Paz 17 xcode ios cocoapods
我正在尝试从我的项目中删除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.
Run Code Online (Sandbox Code Playgroud)
我试图从项目中删除pod,重新安装它们,从构建阶段删除脚本,没有任何工作.
Mat*_*eth 34
从pod文件中删除pod,然后重新安装pod
打开终端和类型
cd ~/projectDirectoryPath
Run Code Online (Sandbox Code Playgroud)
然后键入
open -a Xcode Podfile
Run Code Online (Sandbox Code Playgroud)
这将打开podfile
删除该行
pod 'Alamofire'
Run Code Online (Sandbox Code Playgroud)
然后保存文件(Alamofire只是一个例子)
在终端类型
pod install
Run Code Online (Sandbox Code Playgroud)
这应该更新项目并删除不需要的pod文件..
为了简化 Aviv 提到的内容,如果您想从项目中完全删除任何 pod 的所有痕迹,则只需从项目文件夹中删除所有 pod 相关文件并运行:
sudo gem install cocoapods-deintegrate
pod deintegrate
Run Code Online (Sandbox Code Playgroud)
沙盒 Podfile.lock 错误应该会消失。