背景
- xcode编译运行时报错
The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update
,这是依赖的问题。
解决方案
安装CocoaPods
sudo gem install cocoapods
OS X 10.11以后,在终端输入以下命令:
sudo gem install -n /usr/local/bin cocoapods
pod setup
pod install
执行完成后,如下图所示。
