zoukankan      html  css  js  c++  java
  • 将自己打代码添加到cocoapods

    1,Github 上创建新站点

    2, 从gitHub上 clone 一份,将源码拷贝到该目录下提交
    3,开源库发布之后,需要打上tag

     git tag 0.0.1
    
     git push --tags  
    
    git push -u origin master
    

    4,进入到项目根目录下,创建podspec文件

    pod spec create PodName


    5,编辑podspec文件中的相关信息,有两个比较重要的地方s.sources.source_files,可以验证是否有误(不能有错误和警告):

    pod spec lint PodName.podspec
    

     6,注册pod trunk

    pod trunk register orta@cocoapods.org 'Orta Therox' --description='macbook air'
    

    7,发布 pod trunk,在包含有.podspec文件的目录下执行

    pod trunk push [NAME.podspec]
    

    8, 更新 pod 库, 如果pod trunk push成功后无法pod search到自己的库,可执行该命令

    pod setup
    

    9,如果遇到警告 :[-Wpointer-bool-conversion], 解决办法:

    pod 'TTTAttributedLabel', :inhibit_warnings => true
    

      

  • 相关阅读:
    Elixir 学习资源
    elixir 模块
    elixir 表单 map
    elixir 关键字列表
    elixir case cond if
    elixir 模式匹配
    elixir 基础数据结构
    5、OpenCV Python ROI和泛洪填充
    6、OpenCV Python 图像模糊
    4、OpenCV Python 像素运算
  • 原文地址:https://www.cnblogs.com/shidaying/p/6252225.html
Copyright © 2011-2022 走看看