Pod::Spec.new do |s| s.name = 'device_jieli' s.version = '0.0.1' s.summary = 'JieLi Home SDK Flutter plugin (iOS).' s.description = <<-DESC JieLi (杰理) device plugin — iOS counterpart of the Android implementation under android/src/main/kotlin/com/jielihome/jielihome. DESC s.homepage = 'https://example.com' s.license = { :type => 'MIT', :file => '../LICENSE' } s.author = { 'AI Agent' => 'liwei1dao@gmail.com' } s.source = { :path => '.' } s.source_files = 'Classes/**/*.{h,m,swift}' s.dependency 'Flutter' s.dependency 'device_plugin_interface' s.platform = :ios, '12.0' s.swift_version = '5.0' # `ota` plugin 已废弃,OTA 全部走本插件。Vendor 完整的 JieLi SDK # framework 集合(来自 JIELI-Release 同一套,版本一致,避免 ABI 漂移)。 # JLAudioUnitKit 不在此列表 —— `ble_service` 的 SPM binary target 已提供, # 同名 vendor 会触发 Xcode "Multiple commands produce ..." 错误。 s.vendored_frameworks = [ 'Frameworks/JL_BLEKit.xcframework', 'Frameworks/JL_OTALib.xcframework', 'Frameworks/JL_AdvParse.xcframework', 'Frameworks/JL_HashPair.xcframework', 'Frameworks/JLLogHelper.xcframework', 'Frameworks/JLAV2Lib.framework' ] s.frameworks = 'CoreBluetooth', 'AVFoundation', 'UIKit', 'Foundation' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64', # JieLi's xcframeworks ship Obj-C headers; expose them to Swift via the # generated module map. 'CLANG_ENABLE_MODULES' => 'YES' } end