【記錄】2019-07-17 podSpec多個(gè)文件夾

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)行。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容