pod-template
PodTemplate 是通过修改 CocoaPods/pod-template 的一个 pod lib create 的模板。
Getting started
创建的时候带上模板的仓库地址即可,然后按照提示把问题的答案输入即可。
下面是详细的步骤:
-
在终端中输入下面这个命令
pod lib create TestPod --template-url=https://github.com/XXCommonTools/PodTemplate.git
-
根据终端提示回答以下这些问题:
- What is the author's name?
- What is the author's email?
- What is the pod's desc?
- What is the repo's home page url? (这个地址一般是 pod 仓库 浏览器里面的地址)
- What is the repo's git url or ssh? (这个地址是 pod 仓库的 git 远程地址,可以是 url 地址 也可以输入 ssh 地址)
- What language do you want to use?? [ Swift / ObjC ]
- Would you like to include a demo application with your library? [ Yes / No ]
- Which testing frameworks will you use? [ Specta / Kiwi / None ]
- Would you like to do view based testing? [ Yes / No ]
- What is your class prefix?
###上面这些问题的答案并没有校验,所以输入的时候尽量准确和有意义。
Requirements:
- CocoaPods 1.0.0+