IOS uploads its own library to Cocoapod

Source: Internet
Author: User

Reference: http://www.cnblogs.com/SimonGao/p/4987668.html

Reference: http://www.cnblogs.com/yueyuanyueyuan/p/5560954.html

Reference: http://blog.csdn.net/wzzvictory/article/details/20067595

Reference: HTTP://WWW.JIANSHU.COM/P/D7D1942DD3F1

1. Engineering
    • Referenced third-party libraries, cannot use #import<> and use #import "" To set the search option for the feature "Always Search user paths" is yes
    • The files in the library don't have a test project.
    • Upload to GitHub
2. Making 2.1.  Add the. podspec file 2.1.1. Create
    • Must file
    • Using the command pod spec create Name.podspec
    • Or a copy of the document directly.
2.1.2. Adding content
    • Have to
    • Come to the repository root directory
    • Adding a pods dependent library requires a description file, and the file name is the same as the name of the dependent library.
    • S.source_files is the source file path
Pod::spec.new do |s|  S.name         = "Colorfulwooduibase"  s.version      = "1.0.1"  s.summary      = "User Interface Design."  S.homepage     = "HTTPS://GITHUB.COM/GS01MD"  s.license      = "MIT"  s.author       = {"Colorfulwood" + = "[Email protected]"}  S.source       = {: git = "Https://github.com/gs01md/ColorfulWoodUIBase.git",: Tag = "#{s.version}"}  s.source_files = "colorfulwooduibase/colorfulwooduibase/**/*"  s.platform     =: iOS  s.frameworks   = ' UIKit '  s.dependency    ' masonry ' end

2.2. Upload the Podspec file 2.1.1. Add a version number to the pod and tag
Git tag-m "first release colorfulwooduibase with Podspec" "1.0.1" git push--tags

2.1.2. Validation
Pod Lib Lint Colorfulwooduibase.podspec

2.1.3. Registration
Pod trunk register [email protected] "Colorfulwood"--description= "MacBook Pro"

2.1.4. Uploading
Pod Trunk Push Colorfulwooduibase.podspec

IOS uploads its own library to Cocoapod

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.