1.trunk 注册
$ pod trunk register useremail 'username' --verbose
如 :pod trunk register abc@163.com 'hap' --verbose
2.WARN | [iOS] license: Unable to find a license file 没有找到许可文件,其他人的解决方法文件里面加一句即可:
spec.license = "Copyright (c) 2015年 Lisa. All rights reserved."这个方法我没有进行尝试,不知道可行性
标准方法如下
2.1.在github上创建一个LICENSE。选择你的项目,选择Create File,输入LICENSE(全部大写),右面会有提示,按照提示创建一个LICENSE。
2.2.将LICENSE文件拉取到本地,与.podspec文件在同一个文件夹下
如何创建LICENSE文件 (这里有坑,我用safari,他不提示按钮,换个浏览器就行)
3.warning: Could not find remote branch 0.0.2 to clone.
没有找到对应的tag,spec需要和tag进行匹配来“发布”你的代码
$ git tag 0.0.2
#注意,我这里是0.0.2,你的是什么自行改正,与 spec.version = "0.0.2"对应
4.The `source_files` pattern did not match any file.
这里要说一下spec目录
spec.source_files = "abc/def/*.{h,m}"
adc表示与.podspec同级的目录,注意路径
网友评论