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