在使用Github下载的demo时出现问题
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.
解决方法
- 关闭当前的工作空间,删除掉文件夹中的workspace
- rm -rf MyProject.xcworkspace
- pod setup
- pod install
- 然后打开空间,clean + build