Xcode 运行项目时的bug

1、如果项目添加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.
解决方案: 删除lock文件,步骤:Build Phases –>Check Pods Manifest.lock—>删除
2、如果编译后提示 ‘xxx’ file not found:可能因为CocoaPods更新版本后,又是target问题
解决方案: 修改Podfile文件的内容 –> 终端输入命令:pod install

猜你喜欢

转载自blog.csdn.net/snow51/article/details/80888750
今日推荐