CocoaPod third-party library and cocoapod third-party library
It is a good principle to use CocoaPod for oc development and integration with third-party libraries. The following uses mac as an example to describe it.
First, you need a Ruby running environment on your computer. Run sudo gem install cocoapods on the terminal. So far, cocoapod has been installed.
When using Podfile, you must manually write a Podfile under the root directory of the project, and enter the third-party library to be installed, such as pod 'xxxx '. Switch the terminal to the project root directory and run pod install.
After that, you will find that many files are added to the root directory and run the workspace file.
If:
You need to add $ (inherited) to the build setting in the targets of the project ).
Here we will explain how to delete a third-party library, delete the library in Podfile, and re-run pod install.