工程使用CocoaPods管理第三方庫,在新的目錄update版本的時候出現(xiàn)如下問題
問題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一下
按照網(wǎng)上找到的方法,
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 ?發(fā)現(xiàn)里邊有目錄不正確,按實際目錄做如下修改,
vi MyProject.xcodeproj/project.pbxproj
Pods/Target Support Files/Pods-MyProject/Pods.debug.xcconfig
Pods/Target Support Files/Pods/Pods.debug.xcconfig
紅色部分出現(xiàn)了差別,按實際路徑修改