iOS CocoaPods iOS 'The sandbox is not sync with the Podfile.lock'问题解决

gitHub 下载的Demo ,莫名的出现错误,搜索之后才得知是Cocoapods 升级之后出现的问题,导致依赖关系丢失,造成版本不匹配,出现The sandbox is not sync with the Podfile.lock

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.`

程序猿的眼里就是不希望看到这些问题,现在我们找出一个解决办法
解决步骤:

  1. 关闭当前的工作空间,删除掉根目录中的workspace,然后重新安装pod install,然后在双击打开我们的 project.xcworkspace ,执行菜单中的product -> clean ,然后在build 一次
    我们首先通过终端:
//1. 进入到我们出现错误工程的根目录
rm -rf  Project.xcworkspace   
pod install

我们等待几分钟看到如下界面表示OK


2x.png

我们看到Updating local specs repositories 不要着急,等待一会就好了,以上是我的解决办法



文/Raybon_lee(简书作者)
原文链接:http://www.jianshu.com/p/9a5c219a6bf3
著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值