1.编写.podspace 文件。
2.验证.podspace
命令行cd到文件目录
pod lib lint
此时出现警告不用管例如
[!] **** did not pass validation, due to 74 warnings (but you can use --allow-warnings
to ignore them).
You can use the --no-clean
option to inspect any issue.
只要没有错误就可以
3.执行下一步 pod trunk push *****.podspec --allow-warnings
正常情况下就OK了
🎉 Congrats
🚀 ***** (1.1.3) successfully published
📅 February 22nd, 01:38
🌎 https://cocoapods.org/pods/*****
👍 Tell your friends!
4 .podfile 引用范例
pod '******', '~> 1.1.3'