A subspec "represents specification for a module of the library.".
Here's an example of a .Podspec file taken from here:
Pod::Spec.new do |s|
s.name = 'RestKit'
s.subspec 'Core' do |cs|
cs.dependency 'RestKit/ObjectMapping'
cs.dependency 'RestKit/Network'
cs.dependency 'RestKit/CoreData'
end
s.subspec 'ObjectMapping' do |os|
end
end
Inside Swift, how would someone import the only the ObjectMapping subspec, instead of the whole Cocoapos Pod? The documentation does say its a "module of the library" so this leads me to believe there is some way to import the module/ subspec individually. Unfortunately for me, maybe their definition of module is different to a Swift module and this feature doesn't exist. I am aware of only this import for the whole pod:
import RestKit