解决 diff: /../Podfile.lock: No such file or directo

工程使用CocoaPods管理第三方库,在新的目录update版本的时候出现如下问题

问题1描述:
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.

解决办法:
进入到工程目录重新pod install一下

按照网上找到的方法,

rm -rf MyProject.xcworkspace
rm -rf Pods
rm Podfile.lock
rm -rf  /Users/~/Library/Developer/Xcode/DerivedData/MyProject_******   
pod install

还是没有解决

后来对比,做如下修改

1.修改MyProject 的Build Settings里的

User-Deined

增加    PODS_ROOT = ${SRCROOT}/Pods

2.修改project.pbxpro里的 pods.***.xcconfig的路径

MyProject.xcodeproj  发现里边有目录不正确,按实际目录做如下修改,

vi MyProject.xcodeproj/project.pbxproj

Pods/Target Support Files/??Pods-MyProject/??Pods.debug.xcconfig

Pods/Target Support Files/Pods/Pods.debug.xcconfig

红色部分出现了差别,按实际路径修改

时间: 2024-10-03 13:27:45

解决 diff: /../Podfile.lock: No such file or directo的相关文章

如何解决diff: /../Podfile.lock: No such file or directory 的问题

之前碰到过此类问题,原因是之前用了测试版本的pod,然后回归正式版本,导致找不到pod文件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 install

下载的pod链接失效,build diff: /../Podfile.lock: No such file or directory解决办法

build diff: /../Podfile.lock: No such file or directory 1.终端进入文件路径,执行pod install 2.在工程设置中的Build Phases下删除Check Pods Manifest.lock及Copy Pods Resources 3.clean工程,然后编译就ok了 不行再试试下面方法: 工程使用CocoaPods管理第三方库,在新的目录update版本的时候出现如下问题 问题1描述: diff: /../Podfile.lo

解决cocoapods diff: /../Podfile.lock: No such file or directory

最近把以前代码放到新电脑上运行,在执行pod update之后build工程遇到如下提示: 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 instal

cocoapods出现Diff: /../Podfile.lock: No such file or directory错误

第一种解决方法: 关闭Xcode,重新执行pod install,之后再重新打开Xcode运行. 第二种解决方法: 删除以下文件: xcworkspacePodfile.lockPods文件夹~/Library/Developer/Xcode/DerivedData路径下对应工程的文件夹 然后重新执行pod install 第三种解决方法: 设置Configurations 选中Project->选择Info tab->看看Configurations是不是被设置为 None了,如果是None

【iOS】build diff: /../Podfile.lock: No such file or directory

Github 上下载的开源项目,在 Xcode 打开运行后报了错,如图所示: 解决方法: 在工程设置中的 Build Phases 下删除 Check Pods Manifest.lock 及 Copy Pods Resources. 参考:http://www.ziliao1.com/Article/Show/9FE22F6D957291CC517BDC9B2509871F.html

iOS "The sandbox is not in sync with the Podfile.lock"解决方式

更新Cocoapod之后出现故障: 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.` 解决方式: 关闭如今的工作空间,删掉曾经

解决 The sandbox is not sync with the Podfile.lock问题时候,如下所示

问题描述: github  / sourcetree下载的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 i

GitHub 上下载代码运行报错 :'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

关于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