为什么要用cocoapods ,很简单,第三方库通常需要依耐很多框架,和一些特别的xcode设置,手动添加很繁琐,因此就有了cocoapods,自动给我们的项目添加依耐。
如果出现:
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
这样的错误,提示需要更新cocoaPods的安装,或者重新install.那么我就控制台,cd 到Podfile所在目录,
执行命令:pod install --verbose --no-repo-update
出现错误:bash: pod: command not found
于是乎这是没有安装cocoapods啊,那就安装呗,安装过程参考 http://www.jianshu.com/p/b64b4fd08d3c
以后再更新关于cocoapods相关。。。。。