sudo gem install cocoapods
gem sources - -remove https://rubygems.org/
gem sources -a https://ruby.taobao.org/
gem sources -l
sudo gem install cocoapods
cd 文件名全路徑
vim Podfile
platform :ios, '7.0'
pod “第三方庫頭文件”
pod install
pod install --verbose --no-repo-update
以后在工程中還是得引入頭文件 以前用”” 現在用<>
用后綴名為xcworksapce 打開