The sandbox is not in sync with the Podfile.lock. Run ‘pod install‘ or update

背景

  • xcode编译运行时报错The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update,这是依赖的问题。

解决方案

安装CocoaPods

  • OS X 10.11以前,在终端输入以下命令:
 sudo gem install cocoapods

OS X 10.11以后,在终端输入以下命令:

sudo gem install -n /usr/local/bin cocoapods
  • 设置置pod仓库
pod setup
  • 在项目根目录运行安装命令。
pod install

执行完成后,如下图所示。
在这里插入图片描述

posted on 2020-12-17 09:47  愤怒的苹果ext  阅读(796)  评论(0编辑  收藏  举报

导航