Latest | 0.3.2 |
---|---|
Homepage | https://github.com/huahongiOS/HAlertView |
License | MIT |
Platforms | ios 8.0 |
Authors |
pod组件化
步骤
1.git上创建项目HAlertView
- 本地创建项目:pod lib create HAlertView
3.将打包好的静态库放到Class文件夹下
4.编辑.podspec文件
5.本地项目与远程仓库关联:git remote add origin https://github.com/huahongiOS/HAlertView.git
6.将原文件上传git :
git pull origin master –allow-unrelated-histories
git add . ; git commit ;git push;
7.打tag :git tag 0.1.0 ; git push – -tags;
8.验证.podspec文件: pod lib lint(本地) pod spec lint HAlertView.podspec –allow-warnings - 注册(已注册可忽略):pod trunk register [email protected] huahongiOS
10.pod trunk push HAlertView.podspec –allow-warnings
解决搜索不到的问题:
删除~/Library/Caches/CocoaPods目录下的search_index.json文件
pod setup成功后会生成~/Library/Caches/CocoaPods/search_index.json文件。
终端输入rm ~/Library/Caches/CocoaPods/search_index.json
删除成功后再执行pod search
Latest podspec
{ "name": "HAlertView", "version": "0.3.2", "summary": "description of HAlertView.", "description": "TODO: u81eau5b9au4e49u7684AlertView.", "homepage": "https://github.com/huahongiOS/HAlertView", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "huahong": "[email protected]" }, "source": { "git": "https://github.com/huahongiOS/HAlertView.git", "tag": "0.3.2" }, "platforms": { "ios": "8.0" }, "source_files": "HAlertView/Classes/**/*.{h}", "resource_bundles": { "HAlertView": [ "HAlertView/Assets/*" ] }, "ios": { "vendored_libraries": "HAlertView/libHAlertView.a" } }
Fri, 22 Mar 2019 11:19:15 +0000