我用pod引用很多别人的库
引入方式都是
#import <AAA/aaa.h>
#import <AAA/bbb.h>
PS:以上aaa,bbb都是子模块
而我创建的库却是这样引用的
#import <aaa.h>
#import <bbb.h>
请问这个AAA是如何出现的?
(我的理解是AAA是整个pod包 aaa和bbb是这个pod包的具体模块,根据我的理解写的podspec绝没有达到这样的效果)
贴一下我的podspec
Pod::Spec.new do |s|
s.name = "AAA"
s.summary = "AAA iOS SDK for networking."
s.requires_arc = true
s.version = "0.0.1"
s.platform = :ios, "6.0"
s.license = "MIT"
s.source = {
:git => "https://git.oschina.net/.../AAA.git",
:tag => "#{s.version}"
}
# 模块aaa
s.subspec 'aaa' do |ss|
ss.source_files = 'Pod/Classes/aaa/**/*.{h,m}'
ss.public_header_files = 'Pod/Classes/aaa/aaa.h'
s.dependency 'AFNetworking' , '~>3.1.0'
end
# 模块bbb
s.subspec 'bbb' do |ss|
ss.source_files = 'Pod/Classes/bbb/**/*.{h,m}'
ss.public_header_files = 'Pod/Classes/bbb/bbb.h'
ss.dependency 'AAA/aaa'
end
s.dependency 'BlocksKit' , '~>2.2.5'
end