Pod 制作私有库参考

https://www.jianshu.com/p/f903ecf8e882

Pod私有库的升级

改代码部分,到Example文件夹执行pod install ,修改XXX.specs文件(版本号,依赖什么的)

提交代码修改,打tag,注意tag 一定要和XXX.specs文件中的版本号一致

cd到 pod lib create XXX 的那个文件夹,执行pod repo push WLF_iOS_Specs WLFComponentTableView.podspec --verbose --allow-warnings

作用是将索引推到远程索引库

注意事项:

1. 当制作的Pod私有库引用了其他已存在的库时,将#import "**.h" 第三方库写在 .m文件中,而不是放在.h文件中。在.h文件中@class xxx 即可。

不然会报错:

include of non-modular header inside framework module

2. 千万不要因为pod 慢删掉pod repo 中的master , 不然每次pod install 时都得下载master 30多MB , 而且很卡很慢。

3. 在构建WLFH5Template 组件时,因为该组件引用了

  s.dependency 'SDWebImage'
s.dependency 'FLAnimatedImage'
s.dependency 'HZPhotoBrowser_Refresh'
s.dependency 'JMGTemplateEngine_Refresh'

一定要注意顺序!!!

然后就是验证,推送远程索引时加上pod 的source:

 pod lib lint --sources='http://code.shftz.cn:84/liuwei/WLF_iOS_Specs.git,http://github.com/CocoaPods/Specs.git' --use-libraries --allow-warnings

pod repo push WLF_iOS_Specs WLFH5Template.podspec --sources='http://code.shftz.cn:84/liuwei/WLF_iOS_Specs.git,http://github.com/CocoaPods/Specs.git' --verbose --allow-warnings

不然一直验证不通过

虽然制作完成了,但是当进一个项目, pod search WLFH5Template 时又会报警告,无法搜索到这个库,不知道为什么///???

4. 用pod lib create 组件名时 ,新建本地代码关联到远程,git push 时会出现各种问题。解决办法是通过IDEA图形化工具打开工程,然后git pull ,按照错误一步一步来解决。

5. 安装Pod时有这种黄色警告,不过这些都不影响运行

[!] 'HZPhotoBrowser_Refresh' uses the unencrypted 'http' protocol to transfer the Pod. Please be sure you're in a safe network with only trusted hosts. Otherwise, please reach out to the library author to notify them of this security issue.

6. 更新指定引用库

pod update 要更新库的名字 

7.

RTComponentTableView 使用记录

/// 配置组件内部UI

//- (UITableViewCell *)cellForTableView:(UITableView *)tableView atIndexPath:(NSIndexPath *)indexPath

//{

//

//}

/// 头部高度

- (CGFloat)heightForComponentHeader

{

return 0.01;

}

/// 尾部高度

-(CGFloat)heightForComponentFooter

{

return 0.01;

}

/// 组件高度

- (CGFloat)heightForComponentItemAtIndex:(NSUInteger)index

{

return 180;

}

更具自己的需要修改了部分原框架代码

http://code.shftz.cn:84/WLF_iOS_Components/RTComponentTableView.git

最新文章

  1. bzoj1024搜索
  2. ios企业应用部署
  3. SQL Server备份脚本
  4. 使用rman迁移数据库到异机
  5. WIFI WPA1/2 Crack for Windows
  6. C#线程间同步无法关闭
  7. PowerDesigner连接SqlServer数据库
  8. LINUX DIFF命令详解
  9. visual studio 2013连接Oracle 11g并获取数据:(一:环境搭建)
  10. 软件测试 -- alpha测试和beta测试的区别
  11. 如果使用的是orm,是否还需要关系索引
  12. PLA 多维情况下的vc维
  13. Springboot在IDEA中执行,开启热部署
  14. Android ble蓝牙使用注意
  15. spark提交jar包时出现unsupported major.minor version 52.0错误的解决方案
  16. Google SketchUp Cookbook: (Chapter 1) Making Multiple Copies
  17. Adobe CC 下载地址
  18. 二进制安装MySQL数据库
  19. gcc-linaro-arm-linux-gnueabihf交叉编译器配置
  20. JAVA 框架hibernate (三)(数据库更新丢失)

热门文章

  1. 中国MOOC_零基础学Java语言_第4周 循环控制_1素数和
  2. 手把手教你搭建一个 Elasticsearch 集群
  3. Django框架效率问题的解决方法和总…
  4. 动态网页基础——JSP
  5. python接口自动化:绕过验证码登录
  6. python+selenium上传文件——input标签
  7. ssh-config的使用
  8. 第十四周总结 Io之文件流
  9. c++多线程并发学习笔记(2)
  10. centos7yum安装VirtualBox