一.更新 gem 的时候出错
ERROR: While executing gem ... \(Errno::EPERM\) Operation not permitted - \/usr\/bin\/update\_rubygems
```
1.安装 Homebrew 一个Mac上用于管理命令行软件的工具
\/usr\/bin\/ruby -e "$\(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install\)"
2.安装ruby
brew install ruby
3.更新至最细的gem
sudo gem update --system
### 二. "....with the Podfile.lock .."问题
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.`
问题解决方法:

### 三.不能获取最新的版本
$rm -fr ~/.cocoapods/repos/master$pod setup
最后编辑于 :2017.12.04 20:44:32
©著作权归作者所有,转载或内容合作请联系作者 平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。