1. The first step is to create your empty project
2. Run pod init in the directory under ***.xcodeproj of your project
3. Edit the Podfile and add the libraries you need, for example
pod 'UIView+Shake'
If it is swift, use use_frameworks!
4. Run pod install, then close xcode
5. Open ****.xcworkspace under the project, ok, even if the third-party library is imported, of course, import ***
6. If you need to import a new third-party library during the use of the code, repeat the third step
I feel that many things on the Internet are not clearly written, so I will write one myself for everyone's convenience.