• ios Mac 利用SVN进行cocoapod私有库的使用


    1. 首先在svn上面创建一个文件夹

    举例来说,名字为 FSLBootPageVC

    同时在该目录下创建 trunk 文件夹

    2. 在trunk下面创建文件 FSLBootPageVC.podspec 和文件夹 FSLBootPageVC

    该目录的FSLBootPageVC下面是实际要用的文件

    FSLBootPageVC.podspec的配置如下:

    Pod::Spec.new do |s|
    
      s.name         = "FSLBootPageVC"
      s.version      = "1.0.0"
      s.summary      = "启动页"
    
      s.homepage     = "http://www.xxx.com/"
    
      s.license      = "MIT"
    
      s.author       = { "xxx" => "xxx@xxx.com" }
    
      s.source       = { :git => "svn://xxxx/FSLBootPageVC", :tag => "#{s.version}" }
    
      s.source_files = "FSLBootPageVC/**/*"
    
      s.platform     = :ios, "9.0"
    
      s.frameworks   = 'UIKit'
      s.frameworks   = 'Foundation'
    
    end

    3 svn创建tag 

    以smartsvn为例 选中trunk目录,选择菜单中的tag+branch输入版本号1.0.0

    4 错误

    svn 要求密码:svn ls svn://xxxx/

    输入用户名和密码,如果名字显示是机器的,则按下回车

    5 使用

    pod 'FSLBootPageVC', :svn => 'svn://xxx/cocoaSpec/FSLBootPageVC', :tag =>'1.0.0' #启动页

  • 相关阅读:
    关于ListView
    Camera2
    线程池
    运输层
    计算机网络体系结构
    USACO 2016 US Open Contest Gold T2: Closing the Farm
    USACO 2016 US Open Contest Gold T1: Splitting the Field
    USACO 2016 February Contest Gold T3: Fenced In
    USACO 2016 February Contest Gold T2: Circular Barn Revisited
    USACO 2016 February Contest Gold: T1 Circular Barn
  • 原文地址:https://www.cnblogs.com/SimonGao/p/9958099.html
Copyright © 2020-2023  润新知