CocoaPod third-party library and cocoapod third-party library

Source: Internet
Author: User

CocoaPod third-party library and cocoapod third-party library

It is a good principle to use CocoaPod for oc development and integration with third-party libraries. The following uses mac as an example to describe it.

First, you need a Ruby running environment on your computer. Run sudo gem install cocoapods on the terminal. So far, cocoapod has been installed.

When using Podfile, you must manually write a Podfile under the root directory of the project, and enter the third-party library to be installed, such as pod 'xxxx '. Switch the terminal to the project root directory and run pod install.

After that, you will find that many files are added to the root directory and run the workspace file.

If:


You need to add $ (inherited) to the build setting in the targets of the project ).

Here we will explain how to delete a third-party library, delete the library in Podfile, and re-run pod install.


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.