新建私有库

1.pod repo add Specs http://git.koolearn-inc.com/ios/KLXpecs.git

pod lib create KooProduct

Cloning https://github.com/CocoaPods/pod-template.git into ZOLib.
Configuring KooProduct template.


To get you started we need to ask a few questions, this should only take a minute.

If this is your first time we recommend running through with the guide:

  • http://guides.cocoapods.org/making/using-pod-lib-create.html
    ( hold cmd and double click links to open in a browser. )

What language do you want to use?? [ Swift / ObjC ]

ObjC

Would you like to include a demo application with your library? [ Yes / No ]

Yes

Which testing frameworks will you use? [ Specta / Kiwi / None ]

Kiwi

Would you like to do view based testing? [ Yes / No ]

YES

What is your class prefix?

Koo

3.在http://git.koolearn-inc.com/ios/上建立KooProduct工程

4.git clone [email protected]:ios/KooProduct.git

5.将pod lib create 的KooProduct工程文件复制到git clone下来的目录

6.git add -A && git commit -m "初始化工程"

7.git tag '0.1.0'

8.git push --tags

9.git push origin master

  1. 验证私有库

pod lib lint

如果有因为警告验证不过 pod lib lint --allow-warnings

如果依赖了本地私有库
pod lib lint KooProduct.podspec --sources='http://git.koolearn-inc.com/ios/KLXpecs.git,https://github.com/CocoaPods/Specs.git' --allow-warnings

11.发布到仓库

pod repo push Specs KooProduct.podspec --sources='http://git.koolearn-inc.com/ios/KLXpecs.git,https://github.com/CocoaPods/Specs.git' --allow-warnings

你可能感兴趣的:(新建私有库)