【记录】2019-07-17 podSpec多个文件夹

Be sure to run `pod lib lint LYBaseView.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 = 'LYBaseView'
s.version = '0.1.0'
s.summary = 'A short description of LYBaseView.'

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
TODO: Add long description of the pod here.
DESC

s.homepage = 'https://github.com/LeeYouth/LYBaseView'

s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'

s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'LeeYouth' => '[email protected]' }
s.source = { :git => 'https://github.com/LeeYouth/LYBaseView.git', :tag => s.version.to_s }

s.social_media_url = 'https://twitter.com/'

s.ios.deployment_target = '8.0'

s.source_files = 'LYBaseView/Classes/*/'

s.resource_bundles = {

'LYBaseView' => ['LYBaseView/Assets/*.png']

}

s.public_header_files = 'Pod/Classes/*/'
s.frameworks = 'UIKit', 'MapKit'

s.dependency 'AFNetworking', '~> 2.3'

s.subspec 'LYEmptyView' do |ss|
ss.source_files = 'LYBaseView/Classes/LYEmptyView/*/'
end
end

编辑完podSpec
cd 到example下执行 pod update,然后导入刚才制作的私有库,看是否能正常运行。

你可能感兴趣的:(【记录】2019-07-17 podSpec多个文件夹)