// swift-tools-version: 5.9 import PackageDescription let package = Package( name: "ble_service", platforms: [.iOS("16.0")], products: [ .library(name: "ble-service", targets: ["ble_service"]) ], dependencies: [ ], targets: [ .target( name: "ble_service", dependencies: [ "opus", "JLAudioUnitKit" ], path: "Sources/ble_service", linkerSettings: [ .linkedFramework("AVFoundation"), .linkedFramework("AudioToolbox"), .linkedFramework("CoreBluetooth") ] ), // 本地opus框架作为二进制目标(使用xcframework格式) .binaryTarget( name: "opus", // 改为与 xcframework 内部模块名称一致 path: "opus.xcframework" ), .binaryTarget( name: "JLAudioUnitKit", path: "JLAudioUnitKit.xcframework" ) ] )