create a custom pod lib

1. create a lib on github
2. add git tag
cd /Users/Yan/UIButtonUnit/
git tag '0.0.1'
git push --tags
username
password
3. pod spec create UIButtonUnit.podspec


- ERROR | [iOS] unknown: Encountered an unknown error (/usr/bin/xcrun simctl list -j devices

xcrun: error: unable to find utility "simctl", not a developer tool or in PATH
) during validation.

[!] UIButtonUnit did not pass validation, due to 1 error.
You can use the `--no-clean` option to inspect any issue.

解决方案-设置Xcode CommandlineTools

pod trunk push xxxxxx.podspec --allow-warnings --use-libraries
验证成功之后进行push 操作验证失败。
###[iOS] file patterns: The `source_files` pattern did not match any file.
检查路径是否正确
  s.source_files = 'UIButtonUnit/Classes/*.{h,m}'
如果确认真确
切换到clone git 的文件夹 默认在/User/XXX<用户名>/xxx<项目名>
git tag 0.0.1
git push --tags
再进行 push 
sccess
source_files.png

[iOS] file patterns: The source_files pattern did not match any file.解决方案

切换回pod lib create XXX 的文件夹(.podspec文件的上级目录)重新push
cd /User/XXX/Desktop/xxx

pod trunk push xxxxxx.podspec --allow-warnings --use-libraries

Yan$ pod search UIButtonUnit

[!] Unable to find a pod with name, author, summary, or description matching `UIButtonUnit`
报错搜索失败,移除缓存重新search
localhost:UIButtonUnit Yan$ rm ~/Library/Caches/CocoaPods/search_index.json

localhost:UIButtonUnit Yan$ pod search UIButtonUnit

-> UIButtonUnit (0.0.2)
   A UIButtonUnit is a category for UIButton
   pod 'UIButtonUnit', '~> 0.0.2'
   - Homepage: https://github.com/550872569/UIButtonUnit
   - Source:   https://github.com/550872569/UIButtonUnit.git
   - Versions: 0.0.2 [master repo]
(END)

wq 退出search
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 8,229评论 0赞 10
  • 过年的欢乐时光,总是特别快,很快就要滚回去上班。 新的一年,你又有什么新的计划呢? 大部分人的新年计划,其实跟去年...
    农夫乡巴佬阅读 283评论 0赞 0
  • 无论我们走了多远,走了多久,我们内心总有一个声音说:回家回家回家! 我们的家从不在外面,都在里面;不在豪...
    宇宙本尊阅读 434评论 0赞 0

友情链接更多精彩内容