简单的命令
gem install cocoapods-repo-svn 来安装 repo-svn 插件。pod repo-svn add my-svn-repo http://svn-repo-url 添加你的私有 svn 项目仓库pod repo-svn update my-svn-repo 更新项目pod repo-svn remove my-svn-repo 删除项目复制代码
第一步:创建 podspec
Pod::Spec.new do |s| s.name = "xxx" s.version = "1.0" s.summary = "xxx" s.homepage = "https://192.168.8.250/svn/xxx" s.license = "MIT" s.author = { "xxx" => "xxx@163.com" } s.platform = :ios, "7.0" s.source = { :svn => "https://192.168.8.250/svn/xxx", :tag => s.version} s.source_files = "xxx", "*.{h,m}" s.frameworks = "UIKit" s.requires_arc = trueend复制代码
第二步:将项目提交到svn并打上tags
第三步:安装 repo-svn 插件(如果已经安装了可以跳过)
gem install cocoapods-repo-svn 来安装 repo-svn 插件。复制代码
第四步:添加你的私有 svn 项目仓库
pod repo-svn add xxx //https://192.168.8.250/svn/xxx/tags/1.0
第五步:使用你的私有pods
source 'https://github.com/CocoaPods/Specs.git'platform :ios, ‘8.0’target 'xxx' dopod 'xxx', :svn => "https://192.168.8.250/svn/xxx/tags/1.0"end复制代码
来自:http://www.piggybear.net/?p=702