Create podspec to ship static library

后端 未结 2 1781
别跟我提以往
别跟我提以往 2021-02-14 20:23

I\'m trying to ship a static library via cocoapods. I was given the library without any build directions right now its a drop in to my iOS app. I don\'t need to build the librar

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-14 20:51

    I think you need do like that demo

     Pod::Spec.new do |s|
     s.name         = "RTMPLib Library"
     s.version      = "1.0.0"
     s.summary      = "RTMPLib Library"
     s.homepage     = "https://github.com/jumper/RTMPLib.git"
     s.license      = { :type => 'MIT', :file => 'LICENSE' }
     s.author       = { "jon morehouse" => "jon@jumperapp.com" }
     s.source       = { :git => "https://github.com/jumper/RTMPLib.git", :tag => "#{s.version}" }
     s.platform     = :ios, '7.0'
    
     # arc components
     s.requires_arc = false
    # you static library`s .h file
     s.source_files = 'lib/*.h'
     s.vendored_libraries = 'lib/rtmplib.a'
    
    end
    

提交回复
热议问题