pod 私有库创建

参考链接:

https://juejin.im/post/5accdbc86fb9a028ca534f2e

 

#
# Be sure to run `pod lib lint ***Kit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = '***Kit'
  s.version          = '0.0.1'
  s.summary          = '*** is origin from shouqi, reload by ***'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
                      ***Kit is origin from shouqi, reload by hongqi. Saved in****.
                       DESC

  s.homepage         = 'http://***Kit'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'HongQiZhuanChe' => '[email protected]' }
  s.source           = { :git => 'http://***Kit.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/'

  s.ios.deployment_target = '8.0'

  s.source_files = '***Kit/Classes/**/*'
  s.static_framework = true # 是否使用静态库。如果podfile指明了use_frameworks!命令,但是pod仓库需要使用静态库则需要设置
  # s.resource_bundles = {
  #   '***Kit' => ['***Kit/Assets/*.png']
  # }
  s.vendored_frameworks = '***Kit/***KitPlatformSDK/QQ/*.framework' # 使用的三方framework
  s.resource_bundles = {
    'TencentOpenApi_IOS_Bundle' => ['***Kit/***KitPlatformSDK/QQ/*'] # 资源文件
  }
  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  s.dependency '****SDK'
end
 

你可能感兴趣的:(技巧)