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
Similar Posts:
- How to solve the problem of diff: /. / podfile.lock: no such file or directory
- [Solved] Xcode 10 Error: library not found for -lstdc++.6.0.9
- CocoaPods could not find compatible versions for pod [How to Solve]
- [Solved] xcode unbound variable: Command PhaseScriptExecution failed with a nonzero exit code
- Cocopods: You don’t have write permissions for the /usr/bin directory.
- Pod Install Error: Operation not permitted – /usr/bin/pod
- React Native Project Run Error [How to Solve]
- Git diff indicates the change of FileMode (old mode 100644, new mode 10075)
- [Solved] Vue Project Created error: found 23 vulnerabilities (2 low, 16 moderate, 5 high)
- Could not open lock file/var/lib/dpkg/lock [How to Solve]