创建 .podspec

来源:互联网 发布:netbeans开发php 编辑:程序博客网 时间:2024/06/05 00:31

1.cd 项目

2.pod spec create 项目 git 地址

After commiting the specification, consider opening a ticket with the template displayed above:
- link: https://github.com/songMW/CustomPageControl/issues/new
- title: Please add semantic version tags

Specification created at XX.podspec

说明创建成功了 XX.podspec 在项目目录下

3.给项目加tag

$ git tag -a 1.0.0 -m "Tag release 1.0.0"

$ git push --tags

输入完之后会提示输入 git 的帐号和密码,等待.... 

* [new tag]         1.0.0 -> 1.0.0 成功

rm -rf XX.podspec

pod spec create 项目 git 地址

就不会出现为项目添加 tag 的提示了了,直接提示

Specification created at XX.podspec 

4.打开.podspec

不需要改什么

s.summary 需要填写

s.description需要填写

5.push

git add xx.podspec

git commit -am "add xx.podspec file"

git push

6.在自己的项目中添加这个第三方库的地址

pod 'xx',:git => .podspec 文件中 s.source 地址

0 0
原创粉丝点击