2019年开发App记录

Pod 制做私有库参考git

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

 

Pod私有库的升级github

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

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

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

做用是将索引推到远程索引库this

 

注意事项:spa

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

否则会报错:blog

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

相关文章
相关标签/搜索