cocoapods diff: /../Podfile.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.

是因为项目中存在多个的pods-debug.xcconfig,
需要找到 build-debug 文件,引入 pod 下来的pods-debug.xcconfig,
解决方案:在build-debug中引入 pod 下来的 xcconfig 文件就可以了

include "../Pods/Target Support Files/Pods-base-app/Pods-base-app.debug.xcconfig"

同方法在 release 中也引入对应的文件就可以解决这个报错。


WeChat4ef6124bb8b6b868a9a8817a065945bd.jpg
WeChatb9908e7efea02d5daeaa0649763b196f.jpg

WechatIMG38.jpg
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容