Pod::Spec.new do |s|
s.name = 'Box
s.version = "1.0.0"
s.license = { :type => 'xxx.com', }
s.homepage = 'homepage'
s.authors = { 'xxx' => 'author name' }
s.summary = 'xx 公有库'
s.description = 'xx'
s.source = { :git => 'git@xx',:branch => 'master'}
s.frameworks = 'Foundation', 'UIKit', 'QuartzCore', 'CoreLocation'
s.platform = :ios, '7.0'
s.requires_arc = true
s.source_files = "BoxsysBundle/**/*.{h,m}"
s.prefix_header_file = 'BoxsysBundle/JHSBox-prefix.pch'
s.xcconfig = { 'HEADER_SEARCH_PATHS' => '"../工程路径1/**" ' \
'"../工程路径2/**"' }
s.subspec 'Plugin' do |plugin|
plugin.source_files = "BoxsysBundle/**/*.{h,m}"
plugin.exclude_files = "BoxsysBundle/Box/xx.{h,m}"
end
end
//CocoaPods 官网
https://guides.cocoapods.org/