Cocoapods Management three-party open Source Library

Source: Internet
Author: User

App uses a tripartite library is essential, because the open source Library will not be updated regularly, we use the library to update, use Cocoapods to manage will be more convenient, as long as a command can be implemented to update all the library, cocoapods installation here is not introduced, Only describes how to use after installing Cocoapods.

Create a new iOS project, use the command-line tools to access the project's root directory, creating a file called Podfile, and note that there are no suffixes. Content is:

Platform:ios, ' 8.0 '
target ' your project name ' do
pod ' afnetworking ', ' ~> 3.0 '
pod ' masonry
' end

Save the exit when you are finished editing. If not clear vim tools can Baidu check how to use, the operation of their own, so the impression of deeper.

Enter on the command line: Pod Install


But I want to close the project first, then close the project and try again


The installation is complete at this time. Open again in the working range, double-click the following file


Opened in a working range, with one more pods project


Here, we have completed an open Source library management

If you have finished installing the pod or opened it in project mode, you will report a link error


Just close the project and open it in Workspace mode.

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.