require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) # Remove scope prefix (e.g., '@ideem/') from the package name for CocoaPods compatibility pod_name = package['name'].gsub(/^@.*\//, '') Pod::Spec.new do |s| s.name = pod_name s.version = package['version'] s.summary = package['description'] s.homepage = package['homepage'] || 'https://github.com/ideem/vHSM' s.license = package['license'] || 'ISC' s.author = package['author'] || 'Ideem' s.platforms = { :ios => "13.0" } s.source = { :path => '.' } s.vendored_frameworks = 'ios/ZSM.xcframework' s.source_files = 'ios/**/*.{h,m,mm,swift}' s.exclude_files = 'ios/**/*Tests.{h,m,mm,swift}' s.public_header_files = 'ios/generated.h' s.requires_arc = true s.dependency 'React-Core' # Add pods to the target's xcconfig s.pod_target_xcconfig = { 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}/ios"' } # Test specifications s.test_spec 'Tests' do |test_spec| test_spec.source_files = 'ios/*Tests.m' test_spec.dependency 'React-Core' test_spec.framework = 'XCTest' test_spec.requires_arc = true end end