cd ~/Path/To/Folder/Containing/ShowTracker
touch podfile
open -a Xcode Podfile // To open it in Xcode
OPEN -e podfile // To open it in text editor
pod install // To install a new pod
pod update // To update all pods
sudo gem install -n /usr/local/bin cocoapods
pod setup
cd /project path
pod init
在Podfile中,我们需要设置目标
# Podfile
platform :ios, '9.0'
use_frameworks!
# My other pods
target “Projectname” do
pod 'MBProgressHUD', '~> 0.8'
pod 'Reachability', '~> 3.1.1'
pod 'AFNetworking', '~> 2.2'
pod 'TPKeyboardAvoiding', '~> 1.2'
end
target 'ProjectnameTests' do
testing_pods
end
target 'ProjectnameUITests' do
testing_pods
end
sudo gem update
sudo gem install cocoapods
pod setup
cd (project direct drag link)
pod init
open -aXcode podfile # (If it’s already open, add your pod file name. Example: alamofire4.3)
pod install
pod update