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