Pod::Spec.new do |s| s.name = '${POD_NAME}' s.version = '${TFL_BUILD_VERSION}' s.authors = 'Google Inc.' s.license = { :type => 'Apache' } s.homepage = 'https://github.com/tensorflow/tensorflow' s.source = { :http => "${TFL_DOWNLOAD_URL}" } s.summary = 'TensorFlow Lite' s.description = <<-DESC An internal-only pod containing the TensorFlow Lite C library that the public `TensorFlowLiteSwift` and `TensorFlowLiteObjC` pods depend on. This pod is not intended to be used directly. Swift developers should use the `TensorFlowLiteSwift` pod and Objective-C developers should use the `TensorFlowLiteObjC` pod. DESC s.cocoapods_version = '>= ${TFL_MIN_COCOAPODS_VERSION}' s.ios.deployment_target = '12.0' s.module_name = 'TensorFlowLiteC' s.library = 'c++' # TODO: Remove this after adding support for arm64 simulator. s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386', 'ENABLE_USER_SCRIPT_SANDBOXING' => 'NO', } # TODO: Remove this after adding support for arm64 simulator. s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386', 'ENABLE_USER_SCRIPT_SANDBOXING' => 'NO', } s.default_subspec = 'Core' s.subspec 'Core' do |core| core.vendored_frameworks = 'Frameworks/TensorFlowLiteC.xcframework' core.resource_bundle = { 'TensorFlowLiteC' => 'Frameworks/TensorFlowLiteC.xcframework/PrivacyInfo.xcprivacy' } end s.subspec 'CoreML' do |coreml| coreml.weak_framework = 'CoreML' coreml.dependency "#{s.name}/Core" coreml.vendored_frameworks = 'Frameworks/TensorFlowLiteCCoreML.xcframework' coreml.resource_bundle = { 'TensorFlowLiteCCoreML' => 'Frameworks/TensorFlowLiteCCoreML.xcframework/PrivacyInfo.xcprivacy' } end s.subspec 'Metal' do |metal| metal.weak_framework = 'Metal' metal.dependency "#{s.name}/Core" metal.vendored_frameworks = 'Frameworks/TensorFlowLiteCMetal.xcframework' metal.resource_bundle = { 'TensorFlowLiteCMetal' => 'Frameworks/TensorFlowLiteCMetal.xcframework/PrivacyInfo.xcprivacy' } end end