require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) # The pod is deliberately NOT named "MyidSdk": that differs from the vendor pod # "MyIdSDK" only by case, and on a case-insensitive filesystem the two targets # collide on the same intermediate build directory, so this pod's generated # Swift header lands in the vendor's build dir and the ObjC++ layer cannot # import it. The JS module name is unaffected and stays "MyidSdk". Pod::Spec.new do |s| s.name = "RNMyidSdk" s.version = package["version"] s.summary = package["description"] s.homepage = package["homepage"] s.license = package["license"] s.authors = package["author"] s.platforms = { :ios => min_ios_version_supported } s.source = { :git => "https://gitlab.aigroup.uz/myid-public-code/myid-rn-sdk.git", :tag => "#{s.version}" } s.source_files = "ios/**/*.{h,m,mm,swift,cpp}" s.private_header_files = "ios/**/*.h" # Binary XCFramework distributed on the public CocoaPods trunk. s.dependency "MyIdSDK", "3.1.3" s.swift_version = "5.0" # DEFINES_MODULE lets the ObjC++ layer import the generated RNMyidSdk-Swift.h. s.pod_target_xcconfig = { "DEFINES_MODULE" => "YES" } install_modules_dependencies(s) end