转载:http://www.cnblogs.com/ios-wmm/p/3360958.html
工程使用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一下
上面步骤进行过之后运行工程可能会有下面错误,那是因为当前用户的权限所致。
问题2描述:
/Users/wmm-mac/Documents/Program-SVN/Versions/code/iPhone/GeneralProject/Pods/Pods-resources.sh: line 5: /Users/wmm-mac/Documents/Program-SVN/Versions/code/iPhone/GeneralProject/Pods/resources-to-copy-GeneralProject.txt: Permission denied
Pod没有权限:
如果没有权限,可执行下面代码
sudo chmod 777 Pods
sudo chmod 777 Pods
Error:“The sandbox is not in sync with the Podfile.lock…” after installing RestKit with cocopods
转载:http://stackoverflow.com/questions/21366549/errorthe-sandbox-is-not-in-sync-with-the-podfile-lock-after-installing-res
Answer:
I was able to fix that by updating CocoaPods.
I. Project Cleanup
- In the project navigator, select your project
- Select your target
- Remove all libPods*.a in Linked Frameworks and Libraries
II. Update CocoaPods
- Launch Terminal and go to your project directory.
- Update CocoaPods using the command
pod install
CocoaPods Errors on Project Build
转载:http://stackoverflow.com/questions/17072396/cocoapods-errors-on-project-build Answer: I had a similar problem when I did major changes to my Podfile. My solution was to remove the workspace file and run pod install
again:
rm -rf MyProject.xcworkspace
pod install