把文件下载到本地然后pod install

来源:互联网 发布:杭州淘宝摄影公司 编辑:程序博客网 时间:2024/06/05 16:53

把文件下载到本地、在外围写一个 PLPlayerKit.podspec。

关键,你就可以用   pod "PLPlayerKit", :path => "../"
end

===》经历和几次的git失败,pod install失败。


#

# Be sure to run `pod lib lint PLPlayerKit.podspec' to ensure this is a
# valid spec and remove all comments before submitting the spec.
#
# Any lines starting with a # are optional, but encouraged
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#


Pod::Spec.new do |s|
  s.name             = "PLPlayerKit"
  s.version          = "2.2.4"
  s.summary          = "Pili iOS video player SDK, RTMP, HLS video streaming supported."
  s.homepage         = "https://github.com/pili-engineering/PLPlayerKit"
  s.license          = 'Apache License, Version 2.0'
  s.author           = { "0dayZh" => "0day.zh@gmail.com" }
  s.source           = { :git => "https://github.com/pili-engineering/PLPlayerKit.git", :tag => "v#{s.version}" }


  s.platform     = :ios, '7.0'
  s.requires_arc = true


  s.public_header_files = "Pod/Library/include/PLPlayerKit/*.h"
  s.source_files = 'Pod/Library/include/**/*.h'


  s.dependency 'pili-librtmp', '= 1.0.4'
  s.dependency 'HappyDNS', '~> 0.3.10'
  s.frameworks = ["UIKit", "Foundation", "CoreGraphics", "MediaPlayer", "CoreAudio", "AudioToolbox", "Accelerate", "QuartzCore", "OpenGLES", "AVFoundation"]
  s.libraries = "c++", "z", "bz2", "iconv"


  s.default_subspec = "precompiled"


  s.subspec "precompiled" do |ss|
    ss.preserve_paths         = "Pod/Library/include/PLPlayerKit/*.h", 'Pod/Library/lib/*.a'
    ss.vendored_libraries   = 'Pod/Library/lib/*.a'
    ss.xcconfig = { 'HEADER_SEARCH_PATHS' => "${PODS_ROOT}/#{s.name}/PLPlayerKit/lib/include" }
  end
end
0 0
原创粉丝点击