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" => "[email protected]" }

  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

猜你喜欢

转载自www.cnblogs.com/SimonGao/p/9958099.html