Use of Cocoapods

Source: Internet
Author: User
Tags install cocoapods

1. Website: https://cocoapods.org

2. Search: Enter the keyword of the library you want to use directly in the search box (English)

3. Install: Open Terminal input command: Suodo gem install Cocoapods

4. Use: Create a text file named Podfile in the directory where you need to use Cocoapods's Xcode project

Edit the Podfile with the following content:

Platform:ios, "6.0"

Target ' app name ' do

pod ' afnetworking '

End

You can add a third-party library that you want to use

When the edit is complete, use the terminal to enter the folder where the project is located, execute the command: Pod install wait

When you are finished, use the app name. Xcworkspace to open the project and use it later to open the project

5. Visualization Method:

Install Alcatraz, add Cocoapods plug-ins for Xcode, and use Cocoapods with visual methods



Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Use of Cocoapods

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.