工程使用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-rfMyProject.xcworkspace
rm-rfPodsrmPodfile.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
红色部分出现了差别,按实际路径修改