OS X third-party class library management tools cocoapods, oscocoapods

Source: Internet
Author: User
Tags install cocoapods

OS X third-party class library management tools cocoapods, oscocoapods
I. Introduction

What is cocoapods? -- Is the next third-party class library management tool for OS X and iOS. With cocoapods, you can add a "Pods" dependency library for the project and manage its version.

Cocoapods benefits:

(1) third-party dependent libraries can be easily introduced to automatically complete various configurations: the compilation phase, connector options, and so on.

(2) search for new and standard third-party libraries.

Ii. Installation Steps

Upgrade Ruby: sudo gem update-system

Update Ruby image: gem sources-remove

Set a new image: gem sources-a XXX

View image: gem sources-l

Install cocoapods: gem install cocoapods

Cocoapods configuration update: pod setup -- Cocoapods is downloading its information ~ /. Cocoapods, so the whole process will be slow

3. Use cocoadpods

Class Library search: pod search xxx

Project use: Podfile -- define all third-party dependent Libraries

Download dependency Library: pod install

General sequence: pod update> pod install

Key: Open the. xcworkspace file directly after execution.

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.