8. Create Podfile
platform :ios
pod 'AFNetworking'
pod 'MBProgressHUD'
pod 'OHAttributedLabel'
pod 'MagicalRecord', '= 1.8.3'
pod 'EGOImageLoading'
pod 'AQGridView'
pod 'Facebook-iOS-SDK'
pod 'DCIntrospect'
pod 'OCMock'
19. Spec in the root
of lib repo
pod 'AFNetworking', :git => 'https://github.com/
gowalla/AFNetworking.git', :commit => '082f8319af'
20. Lib without podspec
pod 'JSONKit', :podspec => 'https://raw.github.com/
gist/1346394/1d26570f68ca2d72/JSONKit.podspec'
21. Lib without any available
podspec
pod do |spec|
spec.name = 'JSONKit'
spec.version = '1.4'
spec.source = { :git => 'https://github.com/
johnezang/JSONKit.git', :tag => 'v1.4' }
spec.source_files = 'JSONKit.*'
end
22. Local pod
pod 'libAwesome', :local => '~/path/libAwesome'
*podspec should be in the folder
26. Subspecs
pod ‘RestKit/JSON’
Pod::Spec.new do |s|
s.name = 'RestKit'
s.preferred_dependency = 'JSON'
...
s.subspec 'JSON' do |js|
js.dependency 'RestKit/ObjectMapping/JSON'
js.dependency 'RestKit/ObjectMapping/CoreData'
js.dependency 'RestKit/UI'
end
s.subspec 'XML' do |xs|
...
end
...
end