@xifenglang-33250
2019-01-08T16:46:00.000000Z
字数 749
阅读 717
组件开发笔记
点击
Create new file
,输入LICENSE
,选择MIT协议模板
pod spec create AA
指令或者JKPod_create_spec AA
下面是比较通用的模板
Pod::Spec.new do |s|
s.name = "JKAlertManager"
s.version = "1.2.0"
s.summary = "深度封装UIAlertController,良好兼容UIAlertControllerStyleAlert和UIAlertControllerStyleActionSheet"
s.homepage = "https://github.com/XiFengLang/JKAlertManager"
s.license = "MIT"
s.author = { "XiFengLang" => "lang131jp@vip.qq.com" }
s.source = { :git => "https://github.com/XiFengLang/JKAlertManager.git", :tag => "#{s.version}" }
s.platform = :ios,"8.0"
s.framework = "UIKit"
s.requires_arc = true
s.source_files = "src/*.{h,m}"
end
``
###4.编译验证
> `pod lib lint`或者`jkPod_lib_lint`
###5.Git打标签并提交
```C
创建标签
$ git tag -a 1.0.0 -m '标签说明'
推送到远程
$ git push origin --tags
pod trunk push AA.podspec