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' #启动页

 

posted on 2018-11-14 15:10  大木哥  阅读(290)  评论(0编辑  收藏  举报

导航