(1) Install cocoapods
sudo gem update --system
sudo gem install cocoapods
(2) Download the 3rd party package
a new directory path
b Create a new project myapp with xcode in the directory
c Create a new podfile file in the directory
source "https://github.com/CocoaPods/Specs.git"
platform :ios, "8.0"
use_frameworks!
target "myapp" do
pod 'SVProgressHUD'
pod 'FDFullscreenPopGesture'
pod 'SnapKit'
pod 'Kingfisher'
pod 'Alamofire'
pod 'SwiftyJSON'
end
xcodeproj 'myapp/myapp.xcodeproj'
d command line to enter path
cd /path
e Install 3rd party packages
pod install