A specification describes a version of Pod library. It includes details about where the source should be fetched from, what files to use, the build settings to apply, and other general metadata such as its name, version, and description.
A stub specification file can be generated by the pod spec create command.
The specification DSL provides great flexibility and dynamism. Moreover, the DSL adopts the convention over configuration and thus it can be very simple:
Pod::Spec.new do |s|
s.name = 'Reachability'
s.version = '3.1.0'
s.license =
:type => 'BSD'
s.homepage = 'https://github.com/tonymillion/Reachability'
s.authors =
'Tony Million' => 'tonymillion@gmail.com'
s.summary = 'ARC and GCD Compatible Reachability Class for iOS and OS X. Drop in replacement for Apple Reachability.'
s.source =
:git => 'https://github.com/tonymillion/Reachability.git', :tag => 'v3.1.0'
s.source_files = 'Reachability.h,m
'
s.framework = 'SystemConfiguration'
s.requires_arc = true
end
Pod::Specification::DSL::Attribute
Pod::Specification::DSL::AttributeSupport
Pod::Specification::DSL::Deprecations