一.更新 gem 的時(shí)候出錯
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.更新至最細(xì)的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
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者