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' => 'yuanliyong520@126.com' }
s.source = { :git => 'https://github.com/LeeYouth/LYBaseView.git', :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
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下執(zhí)行 pod update,然后導(dǎo)入剛才制作的私有庫,看是否能正常運(yùn)行扒秸。