一、创建私有库
二、更新代码
将需要替换的文件、.a、.plist 、.h文件、.bundle文件放置到文件夹中。接下来就是配置文件
三、配置spec文件
Pod::Spec.new do |s|
s.name = 'XXX'//名字
s.version = '1.0.0'//版本号
s.ios.deployment_target = '8.0'
s.license = { :type => "Copyright", :text => "中国XXXXXXXX有限公司 ©2018"}
s.summary = 'XXXX SDK.'
s.homepage = 'http://XXXXXXXXXXXX.git'
s.authors = { 'XXXX' => 'XXXXX@163.com'}
s.source = { :git => 'XXXXXXXX.git', :tag => "v#{s.version}" }
s.platform = :ios
s.description = 'XXXX SDK'
s.requires_arc = true
s.source_files = 'XXX/Header/*.{h}'//这个地方就是存放.h文件
s.vendored_libraries = 'XXX/Lib/xxxxxx.a', 'XXX/Lib/*.a'//存放.a文件
s.resources = ['XXXX/Resource/xxxxx.bundle','XXXX/Resource/*']//存放.bundle、.plist文件等