A pod specification
adamvduke edited this page Aug 11, 2012
·
21 revisions
Pod::Spec.new do |s|
s.name = 'LibraryName'
s.version = '1.0.0' # 1
s.summary = 'A library that retrieves the current price of your favorite ice cream.' # 2
s.author = { 'Eloy Durán' => 'eloy.de.enige@gmail.com' } # 3
s.source = { :git => 'https://github.com/alloy/ice-pop.git', :tag => '0.4.2' } # 4
s.source_files = 'Classes', 'External/**/*.{h,m}' # 5
s.dependency 'JSONKit', '~> 1.4' # 6
end
- The version of this pod.
- A short summary of this pod’s description. Add
description
for a more elaborate description. - The author of this pod and his/her email address.
- Where to retrieve this pod’s source. :tag specifies a tagged version. This can be overridden in the Podfile by specifying :head instead of a version.
- A list of file patterns that indicate the source files to add to the static library project.
- Defines a dependency of the library itself, with a version requirement of 1.4 through 1.9.
See the existing specs and the example PodSpec file for a full list of the available attributes and more detailed information.