在使用Github下载的demo时出现问题

在使用Github下载的demo时出现问题

github下载的Demo,很多时候使用到CocoaPods,有的时候因为依赖关系或者版本问题不能编译运行。出现例如

问题时候,如下所示

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
  2. rm -rf MyProject.xcworkspace
  3. pod setup
  4. pod install
  5. 然后打开空间,clean + build

你可能感兴趣的:(IOS功能笔记,知识点)