pod trunk register 邮箱地址 ‘用户名’ –verbose“`
.podspec文件的作用是为了让CocoaPods搜索引擎知道该代码的作者、版本号、概要、描述、源代码地址、部署版本、依赖的框架等描述信息。 .podspec文件可以自动生成,但是因生成会生成很多没有用的信息,所以建议在github上找一个.podspec文件修改一下参数即可。
pod spec create MyProject // 生成MyProject.podspec文件
vim MyProject.podspec 修改里面的内容如下: s.name = "MyProject" s.version = "1.0.0"(一定要和你提交的tag版本一致) s.summary = "A fast integration images loop function of custom control" s.description = "description your demo" s.homepage = "https://github.com/MyProject" s.social_media_url = "url" s.license= { :type => "MIT", :file => "LICENSE" } s.author = { "menday" => "shidewei054@163.com" } s.source = { :git => "https://github.com/MyProject.git", :tag => s.version } s.source_files = "MyProject/*.{h,m}" s.ios.deployment_target = '6.0' s.frameworks = 'UIKit' s.requires_arc = truepod trunk push MyProject.podspec
恭喜您安装成功了