- (void)testComponent {
/**
* cocoapods索引库
* afn索引文件 podspec创库地址 source_files
* 1、创建私有库索引 托管平台
* 2、把自己私有索引库添加到cocoapods
* pod repo add XXXKit https://gitee.com/LF_iOS/common.git
* 3、
* 4、每个模块,搞一个组件 pod lib create XXXKit
* XXXKit放在Classes目录
* 5、s.source、s.source_files、s.version、s.name
*
* 1、创建单独组件工程
* 2、把组件工程 放在托管平台
* 3、podspec描述基本信息(在哪下载,下载哪个目录核心代码)
* 4、索引文件添加到索引库
* 5、项目描述索引文件在哪
*
* 1、执行pod lib create LFLiveKit,配置如下
What platform do you want to use?? [ iOS / macOS ]
>iOS
What language do you want to use?? [ Swift / ObjC ]
> ObjC
Would you like to include a demo application with your library? [ Yes / No ]
> Yes
Which testing frameworks will you use? [ Specta / Kiwi / None ]
> None
Would you like to do view based testing? [ Yes / No ]
> No
What is your class prefix?
> LF
Running pod install on your new library.
Analyzing dependencies
Downloading dependencies
Installing LFLiveKit (0.1.0)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `LFLiveKit.xcworkspace` for this project from now on.
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
* 2、拖入代码到Classes
* 3、添加git远程仓库关联,git remote add origin https://gitee.com/LF_iOS/common.git
* 5、提交本地仓库代码->远程代码仓库
* 6、打标签,并且提交标签到远程地址
* 7、验证spce,并且提交本到地私有索引库
*
*
* 查看本地私有库:pod repo
* 移除本地私有库:pod repo remove UnicodePrintLog
* 查看帮助:pod repo --help
* 添加本地私有库:pod repo add UnicodePrintLog https://codechina.csdn.net/wenzfcsdn/unicodeprintlog.git
* 步骤:
* 1、pod lib create UnicodePrintLog
* 2、拖入代码到Classes
* 3、添加git远程仓库关联,git remote add origin https://codechina.csdn.net/wenzfcsdn/unicodeprintlog.git
* 4、修改spec文件配置
* 5、提交本地代码->远程仓库
* git add .
* git commit -m ""
* git push origin master
* 6、打标签,并且提交标签到远程仓库
* git tag -a '1.0.0' -m '备份1.0.0'
* git push --tag
* 7、验证spec,并且提交到本地私有索引库
* 本地验证:pod lib lint
* 远程验证:pod spec lint
* 提交到本地私有索引库:pod repo push UnicodePrintLog UnicodePrintLog.podspec (如果没有 需添加本地私有库pod repo add)
*
*/
}
网友评论