podfile FileIf you want to consolidate pods, you need to create a podfile piece first. Xcode creates a new Cheng Pods-2 saved to the table. The root record of the CD-to-process in the terminal. For example the following:
lifan:~ apple$ cd/users/apple/desktop/test_afnetworking
lifan:test_afnetworking apple$ ls
Test_afnetworking test_afnetworkingtests
Test_afnetworking.xcodeproj test_afnetworkinguitests
You can find that the directory does not have a podfile file, at which point we can create a podfile file. Podfile is the basis and basis for pods to install and update the class library you need. Continue to operate under the console:
Lifan:test_afnetworking apple$ Vim Podfile
The above command goes into vim edit mode. Press keyboard I to enter--insert--mode and start editing the following:
The picture is as follows:
Then press ESC to exit--insert--edit mode, Lose ":", and press Wq to save the exit. To this podfile creation is complete.class library required for installationImmediately following the above operation, we can now use Pods to install the required class library directly. Immediately after that, the pod Update command was directly lost. This will allow you to install directly. But in the installation process you find it very slow, waiting for a long time. This is due to the fact that the pods repository is updated every time. Our selection does not update the repository. The above represents a successful installation. According to the prompt, we can open the project directly with Test_afnetworking.xcworkspace in the future. The Xcworkspace file represents the engineering interval, and Pods manages the original project and class library in a working range.
Pods managing iOS Third library (ii)