Precautions for using cocoapods for the first time and cocoapods
When only cocoapods is used, various errors and problems may occur.
Here is a summary:
1. first, using cocoapods has many advantages. It is used by many excellent open-source projects on github. If you do not use it, if you download many excellent open-source projects, you cannot run them. lock, Pods, and other cocoapods related files, that is, there is a third-party dependency.
There are two options:
1. Download the dependent libraries to the project separately and delete the dependent libraries and cocoapods files.
This method is time-consuming and labor-intensive and is not recommended.
Second: Learn to use cocoapods, recommended methods
2. If you use cocoapods for the first time, you may encounter various problems. First, install cocoapods. There are many related tutorials on the Internet. The main core in China is to change the source address to the taobao source.
3. the official website describes how to write a Podfile file by using vim without any encoding errors. If you use a mac or other system Editor, The Podfile file may cause encoding errors, I also encountered this problem for the first time, but the vim client configuration is not very convenient, and various command lines are not very easy to use. Here I will teach you a skill, the Podfile generated by using the pod init command is introduced into Xcode for editing.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.