1. Website: https://cocoapods.org
2. Search: Enter the keyword of the library you want to use directly in the search box (English)
3. Install: Open Terminal input command: Suodo gem install Cocoapods
4. Use: Create a text file named Podfile in the directory where you need to use Cocoapods's Xcode project
Edit the Podfile with the following content:
Platform:ios, "6.0"
Target ' app name ' do
pod ' afnetworking '
End
You can add a third-party library that you want to use
When the edit is complete, use the terminal to enter the folder where the project is located, execute the command: Pod install wait
When you are finished, use the app name. Xcworkspace to open the project and use it later to open the project
5. Visualization Method:
Install Alcatraz, add Cocoapods plug-ins for Xcode, and use Cocoapods with visual methods
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Use of Cocoapods