# # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. # Run `pod lib lint ble_service.podspec` to validate before publishing. # Pod::Spec.new do |s| s.name = 'ble_service' s.version = '0.0.1' s.summary = 'BLE服务插件,提供蓝牙扫描、连接和通信功能' s.description = <<-DESC BLE服务插件,提供蓝牙扫描、连接和通信功能,支持iOS 18+ AccessorySetupKit唤醒。 DESC s.homepage = 'http://example.com' s.license = { :file => '../LICENSE' } s.author = { 'Your Company' => 'email@example.com' } s.source = { :path => '.' } s.source_files = 'Classes/**/*' s.dependency 'Flutter' s.platform = :ios, '18.0' # -- ① 把 SpeexKit 声明为“随包带来的二进制框架” -- s.vendored_frameworks = 'Frameworks/SpeexKit.framework' # <- 或 .xcframework # -- ② SpeexKit 可能依赖到的系统库 -- s.frameworks = 'AVFoundation', 'AudioToolbox' s.libraries = 'iconv', 'c++' # libc++/iconv多数 Opus/Speex 都要 # Flutter.framework does not contain a i386 slice. s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } s.swift_version = '5.0' end