gitlib添加私有库流程
2017-05-12 本文已影响0人
iOS的Developer
在你的 git 服务器上创建一个 repo。 名字为 Specs
查看第三方框架仓库源:pod repo
本地下载私有仓库索引:pod repo add Specs http://192.168.1.102/weiyanwu/Specs.git
git add -A && git commit -m "add pod files"
git push origin master
git tag '1.0.0'
git push --tags
git push origin master
pod lib lint
pod lib lint --allow-warnings
`echo "2.3" > .swift-version`
pod repo push Specs ZOMediaLib.podspec
pod repo push Specs ZOMediaLib.podspec --allow-warnings
如果是github
pod trunk push ZOMediaLib.podspec
pod search ZOMediaLib
http://www.cnblogs.com/brycezhang/p/4117180.html
pod lib create ZOLib
yanwudeMacBook-Pro:~ weiyanwu$ pod lib create ZOLib
Cloning `https://github.com/CocoaPods/pod-template.git` into `ZOLib`.
Configuring ZOLib 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 ]
> No
What is your class prefix?
> ZO