Cocoapods 私有库创建

2019-06-17  本文已影响0人  羽裳有涯
 pod repo add QrMockIos http://192.168.7.197:8083/GeexZbc/QrMockIos.git
pod spec create QrMockIos
Pod::Spec.new do |spec|

  spec.name         = "QrMockIos"
  spec.version      = "1.0.0"
  spec.summary      = "网络环境选择"

  spec.description  = <<-DESC
                    网络环境选择和mock扫描环境
                   DESC

  spec.homepage     = "http://192.168.7.197:8083/GeexZbc/QrMockIos.git"
  spec.license      = { :type => "MIT", :file => "FILE_LICENSE" }

  spec.author             = { "zbc101" => "zbc10101@163.com" }
  spec.platform     = :ios, "8.0"

  spec.source       = { :git => "http://192.168.7.197:8083/GeexZbc/QrMockIos.git", :tag => "#{spec.version}" }

  spec.source_files  = "QrMockIos", "QrMockIos/QrMockIos/mock/*.{h,m}"
  # spec.exclude_files = "Classes/Exclude"

  # spec.public_header_files = "Classes/**/*.h"
  spec.dependency "AFNetworking", "~> 3.2.0"

end
pod lib lint
pod lib lint --allow-warnings

注:QrMockIos passed validation. 出现这个就成功了。

总结 以上私有库算创建完成

在别的工程可以引用

pod 'QrMockIos', :git => 'http://192.168.7.197:8083/GeexZbc/QrMockIos.git', :tag => '1.0.0'
pod 'QrMockIos', :git => 'http://192.168.7.197:8083/GeexZbc/QrMockIos.git', :inhibit_warnings => true ,:commit => '2daff42'
上一篇 下一篇

猜你喜欢

热点阅读