require 'json' pjson = JSON.parse(File.read('package.json')) Pod::Spec.new do |s| s.name = "JPush" s.version = pjson["version"] s.homepage = pjson["homepage"] s.summary = pjson["description"] s.license = pjson["license"] s.author = pjson["author"] s.ios.deployment_target = '7.0' s.source = { :git => "https://github.com/yiheyang/jpush-react-native.git", :tag => "#{s.version}" } s.source_files = 'ios/RCTJPushModule/*.{h,m}' s.preserve_paths = "*.js" s.frameworks = 'UIKit','CFNetwork','CoreFoundation','CoreTelephony','SystemConfiguration','CoreGraphics','Foundation','Security' s.weak_frameworks = 'UserNotifications' s.libraries = 'z','resolv' s.vendored_libraries = "ios/RCTJPushModule/*.a" s.dependency 'React' end