1、终端进入文件路径,执行pod install
2、在工程设置中的Build Phases下删除Check Pods Manifest.lock及Copy Pods Resources
标签:
1、终端进入文件路径,执行pod install
2、在工程设置中的Build Phases下删除Check Pods Manifest.lock及Copy Pods Resources
不行再试试下面方法:
工程使用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.
按照网上找到的方法,
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
红色部分出现了差别,按实际路径修改
下载的pod链接失效,build diff: /../Podfile.lock: No such file or directory解决办法
标签:
原文地址:http://www.cnblogs.com/niexiaobo/p/4956114.html