创建podsepc
来源:互联网 发布:对焦算法 编辑:程序博客网 时间:2024/06/03 10:16
1.git添加tag
2.保持spec.podspec 中tag一致,提交修改代码
3.检测本地spec.podspec是否正确 允许警告 详细展示
pod spec lint CNMLib –allow-warnings –verbose
4.推送到远端
pod trunk push CNMLib.podspec –verbose –allow-warnings
5.pod setup
6.pod search CNMLib
其中我的远端路径为/CocoaPods/Specs/bb53570ed3252a81fd9bc9586c6297b7fe5e83d0/Specs/5/c/9/CNMLib
fork https://github.com/CocoaPods/Specs 到本地后查看
以后需要上传到Specs审核,貌似现在不需要了,推送到远端稍等会就会出来
步骤
1.修改代码后上传
2.打tag ,跟上传的tag保持一致
3.pod trunk push CNMLib.podspec –verbose –allow-warnings 跳过警告提交
CNMLib git传送门
我的podspec文件
## Be sure to run `pod lib lint CNMLib.podspec' to ensure this is a# valid spec before submitting.Pod::Spec.new do |s|s.name = 'CNMLib's.version = '0.5.0's.summary = 'A short description of CNMLib.'# This description is used to generate tags and improve search results.# * Think: What does it do? Why did you write it? What is the focus?# * Try to keep it short, snappy and to the point.# * Write the description between the DESC delimiters below.# * Finally, don't worry about the indent, CocoaPods strips it!s.description = <<-DESCTODO: Add long description of the pod here.DESCs.homepage = 'https://github.com/xiamoweinuan/CNMLib's.license = { :type => 'MIT', :file => 'LICENSE' }s.author = { 'xiamoweinuan' => 'gaoshuangone@qq.com' }s.source = { :git => 'https://github.com/xiamoweinuan/CNMLib.git', :tag => s.version.to_s }# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'s.ios.deployment_target = '7.0's.source_files = 'CNMLib/Classes/**/*.{h,m}'# s.resource_bundles = {# 'CNMLib' => ['CNMLib/Assets/*.png']# }# s.public_header_files = 'Pod/Classes/**/*.h'# s.frameworks = 'UIKit', 'MapKit'# s.dependency 'AFNetworking', '~> 2.3'end
如果本地和git上文件都对,执行pod spec lint CNMLib –allow-warnings –verbose的时候一直报文件错误,进入文件路径 /Users/gaoshuang/Library/Caches/CocoaPods/Pods/External/CNMLib/ee2fc8a80215953a3773aa92c682d000-44921
替换掉错误文件(入相应文件夹,创建文件夹与[source_files文件路径对应])
其它资源
1.http://blog.csdn.net/wzzvictory/article/details/20067595
2.http://www.cocoachina.com/ios/20150228/11206.html
3.http://blog.csdn.net/keleyundou/article/details/49635589
- 创建podsepc
- 创建
- 创建
- 创建数据库、创建表
- db2 创建实例,创建数据库,创建表
- 创建主键 创建外键 创建约束
- java 创建文件-创建目录-创建临时文件
- 创建项目
- 自动创建
- 创建同义词
- 创建分区表
- 创建虚拟目录
- 创建触发器
- 创建触发器
- blog创建
- 创建控制台
- 创建控制台
- 博客创建
- 阿里云的Linux中,express创建的服务器遇到的坑
- docker在web开发中得使用流程是怎样的?
- Android6.0+解决getColor()方法过时
- java 求1+2!+3!+...+20!的和
- CodeVs1039[数的划分]
- 创建podsepc
- Volley的简单使用
- poj 3233 Matrix Power Series(矩阵里面的元素也是矩阵)
- 小程序之初识心得
- NLP知识笔记
- 在html页面嵌入applet异常处理办法
- 存储过程被锁住不能编译
- python扒静态网页图片
- Java基础回顾1-4