iOS create open Source Library step, submit cocoa Pods official website, others can use

Source: Internet
Author: User

1, open the terminal into a directory to perform pod lib create Bmblinkbutton, follow the command step.


2. Directory structure


3. Modify the Bmblinkbutton.podspec file

4, into the example,pod update, pod install--verbose--no-repo-update, after the update to open Bmblinkbutton.xcworkspace, engineering directory structure

5, check whether BMBLINKBUTTON.PODSPEC is legal in the directory where Bmblinkbutton.podspec to perform pod Lib lint


6,-WARN | Url:the URL (Https://github.com/hu5675/BMBlinkButton) is not reachable. Resolve the build Bmblinkbutton repository on the GIT server in the method. The pod Lib Lint is then executed until the validation passes.


7. Associate the new Git Repository (Https://github.com/hu5675/BMBlinkButton) and submit the local code with GIT remote repository.


9. Tag the most recent code changes.


10, push git warehouse information to cocoapods official website, so that others can use. To this common library creation is complete. Other people's computer pod repo update can be used to search by pod search Bmblinkbutton


11, modify the Bmblinkbutton code, and submit updates. Two files found online YONetwork.h YONETWORK.M added to the classes file, the directory structure is as follows:


12, in the example project to use Yonetwork and test.


13, push this commit and tag 0.1.1, first edit git ignore file does not upload pods file, and submit updates.


14, modify the Bmblinkbutton.podspec file S.version for 0.1.1 (new tag). Add tag and push tag:git tag 0.1.1 git push--tags


15, re-trunk new changes, so that others can use your new features. Pod Trunk push Bmblinkbutton.podspec.

The Open Source Library is built, followed by the use of the Bmblinkbutton you just created.

1, the new project Usebmblinkbuttondemo, and in this directory to create the Podfile file and edit.

1>podfile File Contents:

Platform:ios, ' 7.0 '

inhibit_all_warnings!

Target ' Usebmblinkbuttondemo ' do

Pod ' Bmblinkbutton ', ' 0.1.1 '

End

2> Terminal execution Pod install

2, open the Usebmblinkbuttondemo.xcworkspace. Directory structure

3, use Bmblinkbutton, and test.

OK, everything is fine.

Finally attached Source: Https://github.com/hu5675/BMBlinkButton

Https://github.com/hu5675/UseBMBlinkButtonDemo

iOS create open Source Library step, submit cocoa Pods official website, others can use

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.