Pod::Spec.new do |s| s.name = 'MKNetworkKit' s.version = '0.82' s.license = 'MIT' s.summary = 'Full ARC based Networking Kit for iOS 4+ devices' s.homepage = 'https://github.com/MugunthKumar/MKNetworkKit' s.author = { 'MugunthKumar' => 'mknetworkkit@mk.sg' } s.source = { :git => 'https://github.com/MugunthKumar/MKNetworkKit.git', :tag => 'v0.82' } s.prefix_header_contents = '#import "MKNetworkKit.h"' files = FileList['MKNetworkKit/*.{h,m}', 'MKNetworkKit/Categories/*.{h,m}'] s.ios.source_files = files.dup.exclude(/NSAlert/) s.osx.source_files = files.dup.exclude(/UIAlertView/) s.ios.frameworks = 'CFNetwork', 'Security' s.osx.frameworks = 'CoreServices', 'Security' s.requires_arc = true s.dependency 'Reachability', '~> 3.0' def s.post_install(target) # Fix an import statement which is used inconsistently in MKNetworkKit # TODO create a ticket for this upstream header = (pod_destroot + 'MKNetworkKit/MKNetworkKit.h') header_contents = header.read.sub('Reachability/Reachability.h', 'Reachability.h') header.open('w') do |file| file.puts(header_contents) end end end