Pod installation third-party framework

Source: Internet
Author: User

    • Maybe some friends in the development, need to use the third-party framework, are directly dragged into the project, and then introduce the required header file, to start the operation. Actually can also make the project out. However, since the third-party framework generally relies on some of the framework of the system, so when you import the third-party framework, after compiling, you have to import some of the system framework, resulting in some more tedious work. So the use of pods to install, third-party framework, it seems more convenient.
    • For example, we need to use the following third-party framework for the project:
      • Afnetworking
        Sdwebimage
        Svprogresshud
        Steps
        And then I'll just say, this step (provided Xcode installs the pod):
    • Create a Podfile file

      • 1. In the terminal input touch podfile
        2. In the Finder, double-click Open
    • Copy the following to Podfile

      • use_frameworks!
        platform :ios, ‘8.0‘
        pod ‘AFNetworking‘
        pod ‘SDWebImage‘
        pod ‘SVProgressHUD‘
    • Save exit
    • Enter the following command to install a third-party framework
install
    • Submit the added frame in the terminal

      • Adding modifications to the staging area

        • git add .
      • Commit changes and add comment information

        • git commit -m "添加第三方框架"
      • To push modifications to a remote server

        • git push

That's basically the problem with the third-party framework.

Pod installation third-party framework

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.