A good memory as bad written, recorded cocoapod use the command
1, the new file podfile
Open the terminal (Terminal.app)
cd 项目根目录
Create a file Podfile
touch Podfile
Open Podfile can be written in terminal
open Podfile
You can also create completely open files directly in xcode, and add the desired tripartite SDK, xcode open style follows
2, add the tripartite SDK
platform:ios,'10.0'
target 'Your_Project_Name' do
pod 'AFNetworking'
end
3, by adding SDK version number
Open the file podfile
platform:ios,'10.0'
target 'Your_Project_Name' do
pod 'AFNetworking', '~> 2.6.3'
end
4, search for the existence of the library you want to install on GitHub
pod search 库名
5, the installation
- Put all database updates within Podfile reinstall
pod install
- Install only the newly added library, the library has been updated to ignore
pod install --verbose --no-repo-update
- Update only the specified library, other libraries ignored
pod update 库名 --verbose --no-repo-update
- Update all libraries
pod update