Precautions for using cocoapods for the first time and cocoapods

Source: Internet
Author: User
Tags install cocoapods

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.