require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) Pod::Spec.new do |s| s.name = "react-native-epson-tm" s.version = package["version"] s.summary = package["description"] s.description = <<-DESC react-native-epson-tm DESC s.homepage = "https://github.com/github_account/react-native-epson-tm" s.license = "MIT" # s.license = { :type => "MIT", :file => "FILE_LICENSE" } s.authors = { "Gaurav Patel" => "patelgaurav4u@gmail.com" } s.platforms = { :ios => "9.0" } s.source = { :git => "https://github.com/github_account/react-native-epson-tm.git", :tag => "#{s.version}" } s.source_files = "ios/**/*.{h,m,swift}" s.vendored_libraries = 'libepos2.a' s.preserve_paths = 'libepos2.a' s.xcconfig = { 'LIBRARY_SEARCH_PATHS' => '"../node_modules/react-native-epson-tm/ios"' } s.libraries = 'epos2','xml2.2' # s.xcconfig = { 'LIBRARY_SEARCH_PATHS' => "${PODS_ROOT}/react-native-epson-tm/**" } s.requires_arc = true s.dependency "React" s.frameworks = 'UIKit', 'ExternalAccessory', 'Foundation', 'SystemConfiguration', 'MobileCoreServices' # ... # s.dependency "..." end