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

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

 问题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一下


按照网上找到的方法,ui


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

仍是没有解决spa

后来对比,作以下修改debug


1.修改MyProject 的Build Settings里的code

User-Deinedget

增长    PODS_ROOT = ${SRCROOT}/Podsit


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

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

vi MyProject.xcodeproj/project.pbxproj date

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

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

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

相关文章
相关标签/搜索