The project uses cocoapods to manage the third-party library, and the following problems appear in the update version of the new directory
problem 1 Description:
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.
Solution:
Enter the project directory and pop install again
According to the method found on the Internet
rm-rfMyProject.xcworkspace
rm-rfPods
rmPodfile.lock
rm-rf/Users/~/Library/Developer/Xcode/DerivedData/MyProject_******
podinstall
Still no solution
Later, I made the following changes
1. Modify the
User-Deined
Add PODS_ROOT =${SRCROOT}/Pods
2. Modify the path of pods.***.xcconfig in project.pbxpro
MyProject.xcodeproj found that there are incorrect directories in it, make the following changes according to the actual directory.
vi MyProject.xcodeproj/project.pbxproj
Pods/Target Support Files/Pods-MyProject/Pods.debug.xcconfig
Pods/Target Support Files/Pods/Pods.debug.xcconfig