创建公有库,可一直报错,地址:
原因有几种 得你排查
首先确定涉及网络文件路径不对,找不到文件报错
git 和 本地 的tag不一致
没有设置tag排查是否是路径问题 先确认 然后没问题的话看看这篇文章
https://www.jianshu.com/p/e5d...
通过stackView 尝试多次,得出解决步骤:
——
pod spec create BN_Utils
//拖入代码 ,修改spec,提交到git
pod lib lint --allow-warnings
pod trunk register shang1219178163@gmail.com 'shang1219178163' --description=“ProductTemplet CocoaPods lib."
git tag -a 1.0.0 -m ‘1.0’
git push origin --tags
pod spec lint
pod trunk push BN_Utils.podspec --allow-warnings
2 回答662 阅读
556 阅读
1 回答5.7k 阅读
2 回答13.8k 阅读
3 回答6.1k 阅读
2 回答8.2k 阅读
2 回答9k 阅读
问题是,你的 podspec 文件,引用到了一个你没有 source_files 的提交。
可以通过调整 podspec 文件的 source , 修改一下引用到最近的提交...