• 2019年开发App记录


    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

    此文仅为鄙人学习笔记之用,朋友你来了,如有不明白或者建议又或者想给我指点一二,请私信我。liuw_flexi@163.com/QQ群:582039935. 我的gitHub: (学习代码都在gitHub) https://github.com/nwgdegitHub/
  • 相关阅读:
    Sentry异常捕获平台
    docker部署RabbitMQ(单机)
    Elasticsearch参数调优
    docker 部署Elasticsearch-权限认证(单节点)
    ElementUI 实现el-table 列宽自适应
    vue 弹幕插件
    linux 命令笔记
    swoole安装笔记
    Swoole学习笔记
    VM安装centos8实战
  • 原文地址:https://www.cnblogs.com/liuw-flexi/p/11039900.html
Copyright © 2020-2023  润新知