Pod::Spec.new do |s| s.name = "RDAIReaderView" s.module_name = "RDAIReaderView" s.version = "0.1.0" s.summary = "Local-first AI indexing and retrieval primitives for ReadViewSDK readers" s.platform = :ios, "15.0" s.swift_versions = ["5.10"] s.homepage = "https://example.invalid/RDAIReaderView" s.author = { "readoor" => "ios@touchread.com" } s.source = { :path => "." } s.license = "MIT" s.requires_arc = true s.subspec "Core" do |core| core.source_files = "Core/**/*.swift" core.frameworks = "CryptoKit" core.libraries = "sqlite3" end s.subspec "NaturalLanguage" do |natural_language| natural_language.source_files = "NaturalLanguage/**/*.swift" natural_language.dependency "RDAIReaderView/Core", "~> 0.1" natural_language.frameworks = "NaturalLanguage" end s.subspec "FoundationModels" do |foundation_models| foundation_models.source_files = "FoundationModels/**/*.swift" foundation_models.dependency "RDAIReaderView/Core", "~> 0.1" # 弱链接:FoundationModels 仅 iOS 26+ 提供,硬链接会让宿主 App 在 # iOS 18 上启动即 dyld 失败。文件内所有类型都是 @available(iOS 26.0, *), # 低版本不会触达这些符号。 foundation_models.weak_frameworks = "FoundationModels" end s.subspec "UI" do |ui| ui.source_files = "UI/**/*.swift" ui.dependency "RDAIReaderView/Core", "~> 0.1" ui.frameworks = "UIKit" end end