Pods managing iOS Third library (ii)

Source: Internet
Author: User

podfile FileIf you want to consolidate pods, you need to create a podfile piece first. Xcode creates a new Cheng Pods-2 saved to the table. The root record of the CD-to-process in the terminal. For example the following:

lifan:~ apple$ cd/users/apple/desktop/test_afnetworking

lifan:test_afnetworking apple$ ls

Test_afnetworking test_afnetworkingtests

Test_afnetworking.xcodeproj test_afnetworkinguitests

You can find that the directory does not have a podfile file, at which point we can create a podfile file. Podfile is the basis and basis for pods to install and update the class library you need. Continue to operate under the console:

Lifan:test_afnetworking apple$ Vim Podfile

The above command goes into vim edit mode. Press keyboard I to enter--insert--mode and start editing the following:

The picture is as follows:

Then press ESC to exit--insert--edit mode, Lose ":", and press Wq to save the exit. To this podfile creation is complete.class library required for installationImmediately following the above operation, we can now use Pods to install the required class library directly. Immediately after that, the pod Update command was directly lost. This will allow you to install directly. But in the installation process you find it very slow, waiting for a long time. This is due to the fact that the pods repository is updated every time.  Our selection does not update the repository. The above represents a successful installation. According to the prompt, we can open the project directly with Test_afnetworking.xcworkspace in the future. The Xcworkspace file represents the engineering interval, and Pods manages the original project and class library in a working range.

Pods managing iOS Third library (ii)

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.