// swift-tools-version: 5.9 import PackageDescription let package = Package( name: "azure_speech", platforms: [.iOS("18.0")], products: [ .library(name: "azure-speech", targets: ["azure_speech"]) ], dependencies: [ // 依赖speech接口模块 .package(path: "../../../speech/ios/speech") ], targets: [ .target( name: "azure_speech", dependencies: [ .product(name: "speech", package: "speech"), "MicrosoftCognitiveServicesSpeech" ], path: "Sources/azure_speech" ), // 使用binaryTarget引用Azure Speech SDK的.xcframework .binaryTarget( name: "MicrosoftCognitiveServicesSpeech", path: "MicrosoftCognitiveServicesSpeech.xcframework" ) ] )