Build Information
Failed to build WatsonDeveloperCloud, reference v5.0.0 (8359f8
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 21:37:03 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/watson-developer-cloud/swift-sdk.git
Reference: v5.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/watson-developer-cloud/swift-sdk
* tag v5.0.0 -> FETCH_HEAD
HEAD is now at 8359f8d Update to 5.0.0 (#1067)
Cloned https://github.com/watson-developer-cloud/swift-sdk.git
Revision (git rev-parse @):
8359f8d2000c53d11d0757d5413f411ac34fac4e
SUCCESS checkout https://github.com/watson-developer-cloud/swift-sdk.git at v5.0.0
Fetching https://github.com/IBM/swift-sdk-core
Fetching https://github.com/daltoniam/Starscream
[10/988] Fetching swift-sdk-core
[456/6021] Fetching swift-sdk-core, starscream
Fetched https://github.com/IBM/swift-sdk-core from cache (1.27s)
Fetched https://github.com/daltoniam/Starscream from cache (1.27s)
Computing version for https://github.com/IBM/swift-sdk-core
Computed https://github.com/IBM/swift-sdk-core at 1.2.1 (1.92s)
Computing version for https://github.com/daltoniam/Starscream
Computed https://github.com/daltoniam/Starscream at 4.0.8 (0.54s)
Creating working copy for https://github.com/daltoniam/Starscream
Working copy of https://github.com/daltoniam/Starscream resolved at 4.0.8
Creating working copy for https://github.com/IBM/swift-sdk-core
Working copy of https://github.com/IBM/swift-sdk-core resolved at 1.2.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swift-sdk",
"name": "WatsonDeveloperCloud",
"url": "https://github.com/watson-developer-cloud/swift-sdk.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-sdk",
"dependencies": [
{
"identity": "swift-sdk-core",
"name": "IBMSwiftSDKCore",
"url": "https://github.com/IBM/swift-sdk-core",
"version": "1.2.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-sdk-core",
"dependencies": [
]
},
{
"identity": "starscream",
"name": "Starscream",
"url": "https://github.com/daltoniam/Starscream",
"version": "4.0.8",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Starscream",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/watson-developer-cloud/swift-sdk.git
[1/79696] Fetching swift-sdk
Fetched https://github.com/watson-developer-cloud/swift-sdk.git from cache (5.58s)
Fetching https://github.com/IBM/swift-sdk-core from cache
Fetching https://github.com/daltoniam/Starscream from cache
Fetched https://github.com/IBM/swift-sdk-core from cache (0.55s)
Fetched https://github.com/daltoniam/Starscream from cache (0.55s)
Computing version for https://github.com/IBM/swift-sdk-core
Computed https://github.com/IBM/swift-sdk-core at 1.2.1 (0.61s)
Computing version for https://github.com/daltoniam/Starscream
Computed https://github.com/daltoniam/Starscream at 4.0.8 (0.03s)
Creating working copy for https://github.com/daltoniam/Starscream
Working copy of https://github.com/daltoniam/Starscream resolved at 4.0.8
Creating working copy for https://github.com/watson-developer-cloud/swift-sdk.git
Working copy of https://github.com/watson-developer-cloud/swift-sdk.git resolved at v5.0.0 (8359f8d)
Creating working copy for https://github.com/IBM/swift-sdk-core
Working copy of https://github.com/IBM/swift-sdk-core resolved at 1.2.1
warning: '.resolve-product-dependencies': dependency 'swift-sdk' is not used by any target
Found 2 product dependencies
- IBMSwiftSDKCore
- Starscream
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/watson-developer-cloud/swift-sdk.git
https://github.com/watson-developer-cloud/swift-sdk.git
{
"dependencies" : [
{
"identity" : "swift-sdk-core",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/IBM/swift-sdk-core"
},
{
"identity" : "starscream",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/daltoniam/Starscream"
}
],
"manifest_display_name" : "WatsonDeveloperCloud",
"name" : "WatsonDeveloperCloud",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "AssistantV1",
"targets" : [
"AssistantV1"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AssistantV2",
"targets" : [
"AssistantV2"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DiscoveryV1",
"targets" : [
"DiscoveryV1"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DiscoveryV2",
"targets" : [
"DiscoveryV2"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "LanguageTranslatorV3",
"targets" : [
"LanguageTranslatorV3"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "NaturalLanguageUnderstandingV1",
"targets" : [
"NaturalLanguageUnderstandingV1"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SpeechToTextV1",
"targets" : [
"SpeechToTextV1"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "TextToSpeechV1",
"targets" : [
"TextToSpeechV1"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "TextToSpeechV1Tests",
"module_type" : "SwiftTarget",
"name" : "TextToSpeechV1Tests",
"path" : "Tests/TextToSpeechV1Tests",
"sources" : [
"TestUtilities.swift",
"TextToSpeechDecoderTests.swift",
"TextToSpeechPlaybackTests.swift",
"TextToSpeechTests.swift"
],
"target_dependencies" : [
"TextToSpeechV1"
],
"type" : "test"
},
{
"c99name" : "TextToSpeechV1",
"module_type" : "SwiftTarget",
"name" : "TextToSpeechV1",
"path" : "Sources/TextToSpeechV1",
"product_dependencies" : [
"IBMSwiftSDKCore"
],
"product_memberships" : [
"TextToSpeechV1"
],
"sources" : [
"InsecureConnection.swift",
"Models/CustomModel.swift",
"Models/CustomModels.swift",
"Models/Prompt.swift",
"Models/PromptMetadata.swift",
"Models/Prompts.swift",
"Models/Pronunciation.swift",
"Models/Speaker.swift",
"Models/SpeakerCustomModel.swift",
"Models/SpeakerCustomModels.swift",
"Models/SpeakerModel.swift",
"Models/SpeakerPrompt.swift",
"Models/Speakers.swift",
"Models/SupportedFeatures.swift",
"Models/Translation.swift",
"Models/Voice.swift",
"Models/Voices.swift",
"Models/Word.swift",
"Models/Words.swift",
"Shared.swift",
"TextToSpeech.swift",
"TextToSpeechDecoder.swift",
"WAVRepair.swift"
],
"target_dependencies" : [
"Clibogg",
"Clibopus",
"Copustools"
],
"type" : "library"
},
{
"c99name" : "SpeechToTextV1Tests",
"module_type" : "SwiftTarget",
"name" : "SpeechToTextV1Tests",
"path" : "Tests/SpeechToTextV1Tests",
"sources" : [
"SpeechToTextRecognizeTests.swift",
"SpeechToTextTests.swift",
"SpeechToTextUnitTests.swift",
"TestUtilities.swift"
],
"target_dependencies" : [
"SpeechToTextV1"
],
"type" : "test"
},
{
"c99name" : "SpeechToTextV1",
"module_type" : "SwiftTarget",
"name" : "SpeechToTextV1",
"path" : "Sources/SpeechToTextV1",
"product_dependencies" : [
"IBMSwiftSDKCore",
"Starscream"
],
"product_memberships" : [
"SpeechToTextV1"
],
"sources" : [
"InsecureConnection.swift",
"Models/AcousticModel.swift",
"Models/AcousticModels.swift",
"Models/AudioDetails.swift",
"Models/AudioListing.swift",
"Models/AudioMetrics.swift",
"Models/AudioMetricsDetails.swift",
"Models/AudioMetricsHistogramBin.swift",
"Models/AudioResource.swift",
"Models/AudioResources.swift",
"Models/Corpora.swift",
"Models/Corpus.swift",
"Models/CustomWord.swift",
"Models/Grammar.swift",
"Models/Grammars.swift",
"Models/KeywordResult.swift",
"Models/LanguageModel.swift",
"Models/LanguageModels.swift",
"Models/ProcessedAudio.swift",
"Models/ProcessingMetrics.swift",
"Models/RecognitionJob.swift",
"Models/RecognitionJobs.swift",
"Models/RegisterStatus.swift",
"Models/SpeakerLabelsResult.swift",
"Models/SpeechModel.swift",
"Models/SpeechModels.swift",
"Models/SpeechRecognitionAlternative.swift",
"Models/SpeechRecognitionResult.swift",
"Models/SpeechRecognitionResults.swift",
"Models/SupportedFeatures.swift",
"Models/TrainingResponse.swift",
"Models/TrainingWarning.swift",
"Models/Word.swift",
"Models/WordAlternativeResult.swift",
"Models/WordAlternativeResults.swift",
"Models/WordConfidence.swift",
"Models/WordError.swift",
"Models/WordTimestamp.swift",
"Models/Words.swift",
"Shared.swift",
"SpeechToText+Recognize.swift",
"SpeechToText.swift",
"WebSockets/RecognitionSettings.swift",
"WebSockets/RecognitionState.swift",
"WebSockets/RecognitionStop.swift",
"WebSockets/RecognizeCallback.swift",
"WebSockets/SpeechRecognitionResultsAccumulator.swift",
"WebSockets/SpeechToTextEncoder.swift",
"WebSockets/SpeechToTextRecorder.swift",
"WebSockets/SpeechToTextSession.swift",
"WebSockets/SpeechToTextSocket.swift",
"WebSockets/SpeechToTextState.swift"
],
"target_dependencies" : [
"Clibogg",
"Clibopus"
],
"type" : "library"
},
{
"c99name" : "NaturalLanguageUnderstandingV1Tests",
"module_type" : "SwiftTarget",
"name" : "NaturalLanguageUnderstandingV1Tests",
"path" : "Tests/NaturalLanguageUnderstandingV1Tests",
"sources" : [
"NaturalLanguageUnderstandingV1Tests.swift",
"TestUtilities.swift"
],
"target_dependencies" : [
"NaturalLanguageUnderstandingV1"
],
"type" : "test"
},
{
"c99name" : "NaturalLanguageUnderstandingV1",
"module_type" : "SwiftTarget",
"name" : "NaturalLanguageUnderstandingV1",
"path" : "Sources/NaturalLanguageUnderstandingV1",
"product_dependencies" : [
"IBMSwiftSDKCore"
],
"product_memberships" : [
"NaturalLanguageUnderstandingV1"
],
"sources" : [
"InsecureConnection.swift",
"Models/AnalysisResults.swift",
"Models/AnalysisResultsUsage.swift",
"Models/Author.swift",
"Models/CategoriesModel.swift",
"Models/CategoriesModelList.swift",
"Models/CategoriesOptions.swift",
"Models/CategoriesRelevantText.swift",
"Models/CategoriesResult.swift",
"Models/CategoriesResultExplanation.swift",
"Models/ClassificationsModel.swift",
"Models/ClassificationsModelList.swift",
"Models/ClassificationsOptions.swift",
"Models/ClassificationsResult.swift",
"Models/ConceptsOptions.swift",
"Models/ConceptsResult.swift",
"Models/DeleteModelResults.swift",
"Models/DisambiguationResult.swift",
"Models/DocumentEmotionResults.swift",
"Models/DocumentSentimentResults.swift",
"Models/EmotionOptions.swift",
"Models/EmotionResult.swift",
"Models/EmotionScores.swift",
"Models/EntitiesOptions.swift",
"Models/EntitiesResult.swift",
"Models/EntityMention.swift",
"Models/FeatureSentimentResults.swift",
"Models/Features.swift",
"Models/FeaturesResultsMetadata.swift",
"Models/Feed.swift",
"Models/KeywordsOptions.swift",
"Models/KeywordsResult.swift",
"Models/ListModelsResults.swift",
"Models/ListSentimentModelsResponse.swift",
"Models/Model.swift",
"Models/Notice.swift",
"Models/RelationArgument.swift",
"Models/RelationEntity.swift",
"Models/RelationsOptions.swift",
"Models/RelationsResult.swift",
"Models/SemanticRolesEntity.swift",
"Models/SemanticRolesKeyword.swift",
"Models/SemanticRolesOptions.swift",
"Models/SemanticRolesResult.swift",
"Models/SemanticRolesResultAction.swift",
"Models/SemanticRolesResultObject.swift",
"Models/SemanticRolesResultSubject.swift",
"Models/SemanticRolesVerb.swift",
"Models/SentenceResult.swift",
"Models/SentimentModel.swift",
"Models/SentimentOptions.swift",
"Models/SentimentResult.swift",
"Models/SummarizationOptions.swift",
"Models/SyntaxOptions.swift",
"Models/SyntaxOptionsTokens.swift",
"Models/SyntaxResult.swift",
"Models/TargetedEmotionResults.swift",
"Models/TargetedSentimentResults.swift",
"Models/TokenResult.swift",
"NaturalLanguageUnderstanding.swift",
"Shared.swift"
],
"type" : "library"
},
{
"c99name" : "LanguageTranslatorV3Tests",
"module_type" : "SwiftTarget",
"name" : "LanguageTranslatorV3Tests",
"path" : "Tests/LanguageTranslatorV3Tests",
"sources" : [
"LanguageTranslatorTests.swift",
"TestUtilities.swift"
],
"target_dependencies" : [
"LanguageTranslatorV3"
],
"type" : "test"
},
{
"c99name" : "LanguageTranslatorV3",
"module_type" : "SwiftTarget",
"name" : "LanguageTranslatorV3",
"path" : "Sources/LanguageTranslatorV3",
"product_dependencies" : [
"IBMSwiftSDKCore"
],
"product_memberships" : [
"LanguageTranslatorV3"
],
"sources" : [
"InsecureConnection.swift",
"LanguageTranslator.swift",
"Models/DeleteModelResult.swift",
"Models/DocumentList.swift",
"Models/DocumentStatus.swift",
"Models/IdentifiableLanguage.swift",
"Models/IdentifiableLanguages.swift",
"Models/IdentifiedLanguage.swift",
"Models/IdentifiedLanguages.swift",
"Models/Language.swift",
"Models/Languages.swift",
"Models/Translation.swift",
"Models/TranslationModel.swift",
"Models/TranslationModels.swift",
"Models/TranslationResult.swift",
"Shared.swift"
],
"type" : "library"
},
{
"c99name" : "DiscoveryV2Tests",
"module_type" : "SwiftTarget",
"name" : "DiscoveryV2Tests",
"path" : "Tests/DiscoveryV2Tests",
"sources" : [
"DiscoveryV2CPDTests.swift",
"DiscoveryV2Tests.swift"
],
"target_dependencies" : [
"DiscoveryV2"
],
"type" : "test"
},
{
"c99name" : "DiscoveryV2",
"module_type" : "SwiftTarget",
"name" : "DiscoveryV2",
"path" : "Sources/DiscoveryV2",
"product_dependencies" : [
"IBMSwiftSDKCore"
],
"product_memberships" : [
"DiscoveryV2"
],
"sources" : [
"Discovery.swift",
"InsecureConnection.swift",
"Models/AnalyzedDocument.swift",
"Models/AnalyzedResult.swift",
"Models/ClassifierFederatedModel.swift",
"Models/ClassifierModelEvaluation.swift",
"Models/Collection.swift",
"Models/CollectionDetails.swift",
"Models/CollectionEnrichment.swift",
"Models/Completions.swift",
"Models/ComponentSettingsAggregation.swift",
"Models/ComponentSettingsFieldsShown.swift",
"Models/ComponentSettingsFieldsShownBody.swift",
"Models/ComponentSettingsFieldsShownTitle.swift",
"Models/ComponentSettingsResponse.swift",
"Models/CreateDocumentClassifier.swift",
"Models/CreateEnrichment.swift",
"Models/DefaultQueryParams.swift",
"Models/DefaultQueryParamsPassages.swift",
"Models/DefaultQueryParamsSuggestedRefinements.swift",
"Models/DefaultQueryParamsTableResults.swift",
"Models/DeleteDocumentResponse.swift",
"Models/DocumentAccepted.swift",
"Models/DocumentAttribute.swift",
"Models/DocumentClassifier.swift",
"Models/DocumentClassifierEnrichment.swift",
"Models/DocumentClassifierModel.swift",
"Models/DocumentClassifierModels.swift",
"Models/DocumentClassifiers.swift",
"Models/Enrichment.swift",
"Models/EnrichmentOptions.swift",
"Models/Enrichments.swift",
"Models/Field.swift",
"Models/ListCollectionsResponse.swift",
"Models/ListFieldsResponse.swift",
"Models/ListProjectsResponse.swift",
"Models/ModelEvaluationMacroAverage.swift",
"Models/ModelEvaluationMicroAverage.swift",
"Models/Notice.swift",
"Models/PerClassModelEvaluation.swift",
"Models/ProjectDetails.swift",
"Models/ProjectListDetails.swift",
"Models/ProjectListDetailsRelevancyTrainingStatus.swift",
"Models/QueryAggregation.swift",
"Models/QueryCalculationAggregation.swift",
"Models/QueryFilterAggregation.swift",
"Models/QueryGroupByAggregation.swift",
"Models/QueryGroupByAggregationResult.swift",
"Models/QueryHistogramAggregation.swift",
"Models/QueryHistogramAggregationResult.swift",
"Models/QueryLargePassages.swift",
"Models/QueryLargeSuggestedRefinements.swift",
"Models/QueryLargeTableResults.swift",
"Models/QueryNestedAggregation.swift",
"Models/QueryNoticesResponse.swift",
"Models/QueryResponse.swift",
"Models/QueryResponsePassage.swift",
"Models/QueryResult.swift",
"Models/QueryResultMetadata.swift",
"Models/QueryResultPassage.swift",
"Models/QuerySuggestedRefinement.swift",
"Models/QueryTableResult.swift",
"Models/QueryTermAggregation.swift",
"Models/QueryTermAggregationResult.swift",
"Models/QueryTimesliceAggregation.swift",
"Models/QueryTimesliceAggregationResult.swift",
"Models/QueryTopHitsAggregation.swift",
"Models/QueryTopHitsAggregationResult.swift",
"Models/ResultPassageAnswer.swift",
"Models/RetrievalDetails.swift",
"Models/TableBodyCells.swift",
"Models/TableCellKey.swift",
"Models/TableCellValues.swift",
"Models/TableColumnHeaderIDs.swift",
"Models/TableColumnHeaderTexts.swift",
"Models/TableColumnHeaderTextsNormalized.swift",
"Models/TableColumnHeaders.swift",
"Models/TableElementLocation.swift",
"Models/TableHeaders.swift",
"Models/TableKeyValuePairs.swift",
"Models/TableResultTable.swift",
"Models/TableRowHeaderIDs.swift",
"Models/TableRowHeaderTexts.swift",
"Models/TableRowHeaderTextsNormalized.swift",
"Models/TableRowHeaders.swift",
"Models/TableTextLocation.swift",
"Models/TrainingExample.swift",
"Models/TrainingQuery.swift",
"Models/TrainingQuerySet.swift",
"Models/UpdateDocumentClassifier.swift",
"Shared.swift"
],
"type" : "library"
},
{
"c99name" : "DiscoveryV1Tests",
"module_type" : "SwiftTarget",
"name" : "DiscoveryV1Tests",
"path" : "Tests/DiscoveryV1Tests",
"sources" : [
"DiscoveryTest+CPD.swift",
"DiscoveryTests.swift",
"DiscoveryUnitTests.swift",
"TestUtilities.swift"
],
"target_dependencies" : [
"DiscoveryV1"
],
"type" : "test"
},
{
"c99name" : "DiscoveryV1",
"module_type" : "SwiftTarget",
"name" : "DiscoveryV1",
"path" : "Sources/DiscoveryV1",
"product_dependencies" : [
"IBMSwiftSDKCore"
],
"product_memberships" : [
"DiscoveryV1"
],
"sources" : [
"Discovery.swift",
"InsecureConnection.swift",
"Models/AggregationResult.swift",
"Models/Collection.swift",
"Models/CollectionCrawlStatus.swift",
"Models/CollectionDiskUsage.swift",
"Models/CollectionUsage.swift",
"Models/Completions.swift",
"Models/Configuration.swift",
"Models/Conversions.swift",
"Models/CreateEventResponse.swift",
"Models/CredentialDetails.swift",
"Models/Credentials.swift",
"Models/CredentialsList.swift",
"Models/DeleteCollectionResponse.swift",
"Models/DeleteConfigurationResponse.swift",
"Models/DeleteCredentials.swift",
"Models/DeleteDocumentResponse.swift",
"Models/DeleteEnvironmentResponse.swift",
"Models/DiskUsage.swift",
"Models/DocumentAccepted.swift",
"Models/DocumentCounts.swift",
"Models/DocumentStatus.swift",
"Models/Enrichment.swift",
"Models/EnrichmentOptions.swift",
"Models/Environment.swift",
"Models/EnvironmentDocuments.swift",
"Models/EventData.swift",
"Models/Expansion.swift",
"Models/Expansions.swift",
"Models/Field.swift",
"Models/FontSetting.swift",
"Models/Gateway.swift",
"Models/GatewayDelete.swift",
"Models/GatewayList.swift",
"Models/HTMLSettings.swift",
"Models/IndexCapacity.swift",
"Models/ListCollectionFieldsResponse.swift",
"Models/ListCollectionsResponse.swift",
"Models/ListConfigurationsResponse.swift",
"Models/ListEnvironmentsResponse.swift",
"Models/LogQueryResponse.swift",
"Models/LogQueryResponseResult.swift",
"Models/LogQueryResponseResultDocuments.swift",
"Models/LogQueryResponseResultDocumentsResult.swift",
"Models/MetricAggregation.swift",
"Models/MetricAggregationResult.swift",
"Models/MetricResponse.swift",
"Models/MetricTokenAggregation.swift",
"Models/MetricTokenAggregationResult.swift",
"Models/MetricTokenResponse.swift",
"Models/NluEnrichmentConcepts.swift",
"Models/NluEnrichmentEmotion.swift",
"Models/NluEnrichmentEntities.swift",
"Models/NluEnrichmentFeatures.swift",
"Models/NluEnrichmentKeywords.swift",
"Models/NluEnrichmentRelations.swift",
"Models/NluEnrichmentSemanticRoles.swift",
"Models/NluEnrichmentSentiment.swift",
"Models/NormalizationOperation.swift",
"Models/Notice.swift",
"Models/PDFHeadingDetection.swift",
"Models/PDFSettings.swift",
"Models/QueryAggregation.swift",
"Models/QueryCalculationAggregation.swift",
"Models/QueryFilterAggregation.swift",
"Models/QueryHistogramAggregation.swift",
"Models/QueryHistogramAggregationResult.swift",
"Models/QueryNestedAggregation.swift",
"Models/QueryNoticesResponse.swift",
"Models/QueryNoticesResult.swift",
"Models/QueryPassages.swift",
"Models/QueryResponse.swift",
"Models/QueryResult.swift",
"Models/QueryResultMetadata.swift",
"Models/QueryTermAggregation.swift",
"Models/QueryTermAggregationResult.swift",
"Models/QueryTimesliceAggregation.swift",
"Models/QueryTimesliceAggregationResult.swift",
"Models/QueryTopHitsAggregation.swift",
"Models/QueryTopHitsAggregationResult.swift",
"Models/RetrievalDetails.swift",
"Models/SduStatus.swift",
"Models/SduStatusCustomFields.swift",
"Models/SearchStatus.swift",
"Models/SegmentSettings.swift",
"Models/Source.swift",
"Models/SourceOptions.swift",
"Models/SourceOptionsBuckets.swift",
"Models/SourceOptionsFolder.swift",
"Models/SourceOptionsObject.swift",
"Models/SourceOptionsSiteColl.swift",
"Models/SourceOptionsWebCrawl.swift",
"Models/SourceSchedule.swift",
"Models/SourceStatus.swift",
"Models/StatusDetails.swift",
"Models/TokenDictRule.swift",
"Models/TokenDictStatusResponse.swift",
"Models/TopHitsResults.swift",
"Models/TrainingDataSet.swift",
"Models/TrainingExample.swift",
"Models/TrainingExampleList.swift",
"Models/TrainingQuery.swift",
"Models/TrainingStatus.swift",
"Models/WordHeadingDetection.swift",
"Models/WordSettings.swift",
"Models/WordStyle.swift",
"Models/XPathPatterns.swift",
"Shared.swift"
],
"type" : "library"
},
{
"c99name" : "Copustools",
"module_type" : "ClangTarget",
"name" : "Copustools",
"path" : "Sources/SupportingFiles/Dependencies/Copustools",
"product_memberships" : [
"TextToSpeechV1"
],
"sources" : [
"opus_header.c"
],
"type" : "library"
},
{
"c99name" : "Clibopus",
"module_type" : "SystemLibraryTarget",
"name" : "Clibopus",
"path" : "Sources/SupportingFiles/Dependencies/Clibopus",
"product_memberships" : [
"SpeechToTextV1",
"TextToSpeechV1"
],
"sources" : [
],
"type" : "system-target"
},
{
"c99name" : "Clibogg",
"module_type" : "SystemLibraryTarget",
"name" : "Clibogg",
"path" : "Sources/SupportingFiles/Dependencies/Clibogg",
"product_memberships" : [
"SpeechToTextV1",
"TextToSpeechV1"
],
"sources" : [
],
"type" : "system-target"
},
{
"c99name" : "AssistantV2Tests",
"module_type" : "SwiftTarget",
"name" : "AssistantV2Tests",
"path" : "Tests/AssistantV2Tests",
"sources" : [
"AssistantV2Tests.swift",
"TestUtilities.swift"
],
"target_dependencies" : [
"AssistantV2"
],
"type" : "test"
},
{
"c99name" : "AssistantV2",
"module_type" : "SwiftTarget",
"name" : "AssistantV2",
"path" : "Sources/AssistantV2",
"product_dependencies" : [
"IBMSwiftSDKCore"
],
"product_memberships" : [
"AssistantV2"
],
"sources" : [
"Assistant.swift",
"InsecureConnection.swift",
"Models/AgentAvailabilityMessage.swift",
"Models/BulkClassifyOutput.swift",
"Models/BulkClassifyResponse.swift",
"Models/BulkClassifyUtterance.swift",
"Models/CaptureGroup.swift",
"Models/ChannelTransferInfo.swift",
"Models/ChannelTransferTarget.swift",
"Models/ChannelTransferTargetChat.swift",
"Models/DialogLogMessage.swift",
"Models/DialogNodeAction.swift",
"Models/DialogNodeOutputConnectToAgentTransferInfo.swift",
"Models/DialogNodeOutputOptionsElement.swift",
"Models/DialogNodeOutputOptionsElementValue.swift",
"Models/DialogNodeVisited.swift",
"Models/DialogSuggestion.swift",
"Models/DialogSuggestionValue.swift",
"Models/Log.swift",
"Models/LogCollection.swift",
"Models/LogMessageSource.swift",
"Models/LogMessageSourceAction.swift",
"Models/LogMessageSourceDialogNode.swift",
"Models/LogMessageSourceHandler.swift",
"Models/LogMessageSourceStep.swift",
"Models/LogPagination.swift",
"Models/MessageContext.swift",
"Models/MessageContextGlobal.swift",
"Models/MessageContextGlobalStateless.swift",
"Models/MessageContextGlobalSystem.swift",
"Models/MessageContextSkill.swift",
"Models/MessageContextSkillSystem.swift",
"Models/MessageContextStateless.swift",
"Models/MessageInput.swift",
"Models/MessageInputAttachment.swift",
"Models/MessageInputOptions.swift",
"Models/MessageInputOptionsSpelling.swift",
"Models/MessageInputOptionsStateless.swift",
"Models/MessageInputStateless.swift",
"Models/MessageOutput.swift",
"Models/MessageOutputDebug.swift",
"Models/MessageOutputSpelling.swift",
"Models/MessageRequest.swift",
"Models/MessageResponse.swift",
"Models/MessageResponseStateless.swift",
"Models/ResponseGenericChannel.swift",
"Models/RuntimeEntity.swift",
"Models/RuntimeEntityAlternative.swift",
"Models/RuntimeEntityInterpretation.swift",
"Models/RuntimeEntityRole.swift",
"Models/RuntimeIntent.swift",
"Models/RuntimeResponseGeneric.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeAudio.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeChannelTransfer.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeConnectToAgent.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeIframe.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeImage.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeOption.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypePause.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeSearch.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeSuggestion.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeText.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeUserDefined.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeVideo.swift",
"Models/SearchResult.swift",
"Models/SearchResultAnswer.swift",
"Models/SearchResultHighlight.swift",
"Models/SearchResultMetadata.swift",
"Models/SessionResponse.swift",
"Shared.swift"
],
"type" : "library"
},
{
"c99name" : "AssistantV1Tests",
"module_type" : "SwiftTarget",
"name" : "AssistantV1Tests",
"path" : "Tests/AssistantV1Tests",
"sources" : [
"AssistantTests.swift",
"AssistantV1UnitTests.swift",
"TestUtilities.swift"
],
"target_dependencies" : [
"AssistantV1"
],
"type" : "test"
},
{
"c99name" : "AssistantV1",
"module_type" : "SwiftTarget",
"name" : "AssistantV1",
"path" : "Sources/AssistantV1",
"product_dependencies" : [
"IBMSwiftSDKCore"
],
"product_memberships" : [
"AssistantV1"
],
"sources" : [
"Assistant.swift",
"InsecureConnection.swift",
"Models/AgentAvailabilityMessage.swift",
"Models/BulkClassifyOutput.swift",
"Models/BulkClassifyResponse.swift",
"Models/BulkClassifyUtterance.swift",
"Models/CaptureGroup.swift",
"Models/ChannelTransferInfo.swift",
"Models/ChannelTransferTarget.swift",
"Models/ChannelTransferTargetChat.swift",
"Models/Context.swift",
"Models/Counterexample.swift",
"Models/CounterexampleCollection.swift",
"Models/CreateEntity.swift",
"Models/CreateIntent.swift",
"Models/CreateValue.swift",
"Models/DialogNode.swift",
"Models/DialogNodeAction.swift",
"Models/DialogNodeCollection.swift",
"Models/DialogNodeContext.swift",
"Models/DialogNodeNextStep.swift",
"Models/DialogNodeOutput.swift",
"Models/DialogNodeOutputConnectToAgentTransferInfo.swift",
"Models/DialogNodeOutputGeneric.swift",
"Models/DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio.swift",
"Models/DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer.swift",
"Models/DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent.swift",
"Models/DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe.swift",
"Models/DialogNodeOutputGenericDialogNodeOutputResponseTypeImage.swift",
"Models/DialogNodeOutputGenericDialogNodeOutputResponseTypeOption.swift",
"Models/DialogNodeOutputGenericDialogNodeOutputResponseTypePause.swift",
"Models/DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill.swift",
"Models/DialogNodeOutputGenericDialogNodeOutputResponseTypeText.swift",
"Models/DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined.swift",
"Models/DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo.swift",
"Models/DialogNodeOutputModifiers.swift",
"Models/DialogNodeOutputOptionsElement.swift",
"Models/DialogNodeOutputOptionsElementValue.swift",
"Models/DialogNodeOutputTextValuesElement.swift",
"Models/DialogNodeVisitedDetails.swift",
"Models/DialogSuggestion.swift",
"Models/DialogSuggestionValue.swift",
"Models/Entity.swift",
"Models/EntityCollection.swift",
"Models/EntityMention.swift",
"Models/EntityMentionCollection.swift",
"Models/Example.swift",
"Models/ExampleCollection.swift",
"Models/Intent.swift",
"Models/IntentCollection.swift",
"Models/Log.swift",
"Models/LogCollection.swift",
"Models/LogMessage.swift",
"Models/LogMessageSource.swift",
"Models/LogPagination.swift",
"Models/Mention.swift",
"Models/MessageContextMetadata.swift",
"Models/MessageInput.swift",
"Models/MessageRequest.swift",
"Models/MessageResponse.swift",
"Models/OutputData.swift",
"Models/Pagination.swift",
"Models/ResponseGenericChannel.swift",
"Models/RuntimeEntity.swift",
"Models/RuntimeEntityAlternative.swift",
"Models/RuntimeEntityInterpretation.swift",
"Models/RuntimeEntityRole.swift",
"Models/RuntimeIntent.swift",
"Models/RuntimeResponseGeneric.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeAudio.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeChannelTransfer.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeConnectToAgent.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeIframe.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeImage.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeOption.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypePause.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeSuggestion.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeText.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeUserDefined.swift",
"Models/RuntimeResponseGenericRuntimeResponseTypeVideo.swift",
"Models/Synonym.swift",
"Models/SynonymCollection.swift",
"Models/Value.swift",
"Models/ValueCollection.swift",
"Models/Webhook.swift",
"Models/WebhookHeader.swift",
"Models/Workspace.swift",
"Models/WorkspaceCollection.swift",
"Models/WorkspaceSystemSettings.swift",
"Models/WorkspaceSystemSettingsDisambiguation.swift",
"Models/WorkspaceSystemSettingsOffTopic.swift",
"Models/WorkspaceSystemSettingsSystemEntities.swift",
"Models/WorkspaceSystemSettingsTooling.swift",
"Shared.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/AssistantV1Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/AssistantV2Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/DiscoveryV1Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/LanguageTranslatorV3Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/NaturalLanguageUnderstandingV1Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/SpeechToTextV1Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/TextToSpeechV1Tests/WatsonCredentials.swift
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/13] Write sources
[5/13] Copying PrivacyInfo.xcprivacy
[5/13] Write sources
[11/13] Write swift-version-2F0A5646E1D333AE.txt
[12/46] Compiling Copustools opus_header.c
[14/46] Compiling IBMSwiftSDKCore MultipartFormData.swift
[15/46] Compiling IBMSwiftSDKCore RestRequest.swift
[16/47] Compiling Starscream Engine.swift
[17/47] Compiling Starscream NativeEngine.swift
[18/47] Emitting module Starscream
[19/47] Compiling Starscream Framer.swift
[20/47] Compiling Starscream HTTPHandler.swift
[21/49] Compiling IBMSwiftSDKCore JSON.swift
[22/49] Compiling IBMSwiftSDKCore CredentialUtils.swift
[23/49] Compiling Starscream FoundationTransport.swift
[24/49] Compiling Starscream TCPTransport.swift
[25/49] Compiling IBMSwiftSDKCore RestError.swift
[26/49] Compiling IBMSwiftSDKCore CodableExtensions.swift
[27/49] Compiling Starscream Data+Extensions.swift
[28/49] Compiling Starscream FoundationHTTPServerHandler.swift
[29/49] Compiling Starscream FrameCollector.swift
[30/49] Compiling Starscream StringHTTPHandler.swift
[31/49] Compiling Starscream Compression.swift
[32/49] Compiling Starscream WSCompression.swift
[33/49] Emitting module IBMSwiftSDKCore
[34/49] Compiling IBMSwiftSDKCore RestResponse.swift
[36/49] Compiling Starscream FoundationSecurity.swift
[37/49] Compiling Starscream WSEngine.swift
[38/49] Compiling Starscream FoundationHTTPHandler.swift
[41/49] Compiling Starscream WebSocketServer.swift
[42/49] Compiling Starscream WebSocket.swift
[46/49] Compiling Starscream Security.swift
[47/49] Compiling Starscream Server.swift
[48/49] Compiling Starscream Transport.swift
[49/49] Compiling Starscream resource_bundle_accessor.swift
[50/524] Compiling LanguageTranslatorV3 TranslationResult.swift
[51/524] Compiling LanguageTranslatorV3 TranslationModels.swift
[52/525] Compiling LanguageTranslatorV3 TranslationModel.swift
[53/525] Compiling SpeechToTextV1 Corpora.swift
[54/525] Compiling SpeechToTextV1 Corpus.swift
[55/525] Emitting module TextToSpeechV1
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/InsecureConnection.swift:33:7: warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
[56/527] Compiling SpeechToTextV1 AudioMetricsDetails.swift
[57/527] Compiling SpeechToTextV1 AudioMetricsHistogramBin.swift
[58/527] Compiling SpeechToTextV1 AudioListing.swift
[59/527] Compiling SpeechToTextV1 AudioMetrics.swift
[60/527] Compiling SpeechToTextV1 AudioResource.swift
[61/527] Compiling SpeechToTextV1 AudioResources.swift
[62/527] Compiling SpeechToTextV1 AcousticModels.swift
[63/527] Compiling SpeechToTextV1 AudioDetails.swift
[64/527] Compiling SpeechToTextV1 InsecureConnection.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/InsecureConnection.swift:33:7: warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
[65/527] Compiling SpeechToTextV1 AcousticModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/InsecureConnection.swift:33:7: warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/InsecureConnection.swift:33:7: warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
[67/527] Compiling LanguageTranslatorV3 Shared.swift
/Users/admin/builder/spi-builder-workspace/Sources/LanguageTranslatorV3/InsecureConnection.swift:33:7: warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
/Users/admin/builder/spi-builder-workspace/Sources/LanguageTranslatorV3/LanguageTranslator.swift:96:21: warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
94 | self.version = version
95 | self.authenticator = authenticator
96 | RestRequest.userAgent = Shared.userAgent
| `- warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
97 | }
98 | #endif
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk-core/Sources/IBMSwiftSDKCore/RestRequest.swift:28:23: note: static property declared here
26 | /// The "User-Agent" header that will be sent with every network request
27 | /// This can include information such as the operating system and the SDK/framework calling this API
28 | public static var userAgent: String?
| `- note: static property declared here
29 |
30 | private let session: URLSession
/Users/admin/builder/spi-builder-workspace/Sources/LanguageTranslatorV3/InsecureConnection.swift:33:7: warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
/Users/admin/builder/spi-builder-workspace/Sources/LanguageTranslatorV3/LanguageTranslator.swift:96:21: warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
94 | self.version = version
95 | self.authenticator = authenticator
96 | RestRequest.userAgent = Shared.userAgent
| `- warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
97 | }
98 | #endif
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk-core/Sources/IBMSwiftSDKCore/RestRequest.swift:28:23: note: static property declared here
26 | /// The "User-Agent" header that will be sent with every network request
27 | /// This can include information such as the operating system and the SDK/framework calling this API
28 | public static var userAgent: String?
| `- note: static property declared here
29 |
30 | private let session: URLSession
[70/527] Emitting module LanguageTranslatorV3
/Users/admin/builder/spi-builder-workspace/Sources/LanguageTranslatorV3/InsecureConnection.swift:33:7: warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
[71/527] Compiling SpeechToTextV1 WordTimestamp.swift
[72/527] Compiling SpeechToTextV1 Words.swift
[73/527] Compiling SpeechToTextV1 Shared.swift
[74/527] Compiling SpeechToTextV1 SpeechToText+Recognize.swift
[75/527] Compiling SpeechToTextV1 SpeechToText.swift
[76/527] Compiling SpeechToTextV1 RecognitionSettings.swift
[82/533] Compiling SpeechToTextV1 CustomWord.swift
[83/533] Compiling SpeechToTextV1 Grammar.swift
[84/540] Compiling SpeechToTextV1 TrainingWarning.swift
[85/540] Compiling SpeechToTextV1 Word.swift
[86/540] Compiling SpeechToTextV1 WordAlternativeResult.swift
[87/540] Compiling SpeechToTextV1 WordAlternativeResults.swift
[88/540] Compiling SpeechToTextV1 WordConfidence.swift
[89/540] Compiling SpeechToTextV1 WordError.swift
[96/540] Compiling SpeechToTextV1 ProcessingMetrics.swift
[97/540] Compiling SpeechToTextV1 RecognitionJob.swift
[98/540] Compiling TextToSpeechV1 TextToSpeechDecoder.swift
[99/540] Compiling TextToSpeechV1 WAVRepair.swift
[100/540] Compiling SpeechToTextV1 SpeakerLabelsResult.swift
[101/540] Compiling SpeechToTextV1 SpeechModel.swift
[103/540] Compiling SpeechToTextV1 Grammars.swift
[104/540] Compiling SpeechToTextV1 KeywordResult.swift
[105/540] Compiling SpeechToTextV1 LanguageModel.swift
[106/540] Compiling SpeechToTextV1 LanguageModels.swift
[107/540] Compiling SpeechToTextV1 ProcessedAudio.swift
[108/540] Compiling SpeechToTextV1 SpeechModels.swift
[109/540] Compiling SpeechToTextV1 SpeechRecognitionAlternative.swift
[110/540] Compiling SpeechToTextV1 SpeechRecognitionResult.swift
[111/540] Compiling SpeechToTextV1 SpeechRecognitionResults.swift
[112/540] Compiling SpeechToTextV1 SupportedFeatures.swift
[113/540] Compiling SpeechToTextV1 TrainingResponse.swift
[114/540] Compiling NaturalLanguageUnderstandingV1 TargetedEmotionResults.swift
[115/540] Compiling NaturalLanguageUnderstandingV1 TargetedSentimentResults.swift
[116/540] Compiling NaturalLanguageUnderstandingV1 TokenResult.swift
[117/540] Compiling NaturalLanguageUnderstandingV1 NaturalLanguageUnderstanding.swift
[118/540] Compiling NaturalLanguageUnderstandingV1 Shared.swift
[119/540] Compiling AssistantV1 RuntimeResponseGenericRuntimeResponseTypeChannelTransfer.swift
[120/540] Compiling AssistantV1 RuntimeResponseGenericRuntimeResponseTypeConnectToAgent.swift
[121/540] Compiling SpeechToTextV1 RecognitionState.swift
[122/540] Compiling SpeechToTextV1 RecognitionStop.swift
[123/540] Compiling SpeechToTextV1 RecognizeCallback.swift
[124/540] Compiling SpeechToTextV1 SpeechRecognitionResultsAccumulator.swift
[125/540] Compiling DiscoveryV2 QueryGroupByAggregationResult.swift
[126/540] Compiling DiscoveryV2 QueryHistogramAggregation.swift
[127/540] Compiling DiscoveryV2 QueryHistogramAggregationResult.swift
[128/540] Compiling DiscoveryV2 QueryLargePassages.swift
[129/540] Compiling DiscoveryV2 QueryLargeSuggestedRefinements.swift
[130/540] Compiling DiscoveryV2 QueryLargeTableResults.swift
[131/540] Compiling AssistantV1 DialogNodeOutputModifiers.swift
[132/540] Compiling AssistantV1 DialogNodeOutputOptionsElement.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeech.swift:98:21: warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
96 | public init(authenticator: Authenticator) {
97 | self.authenticator = authenticator
98 | RestRequest.userAgent = Shared.userAgent
| `- warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
99 | }
100 | #endif
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk-core/Sources/IBMSwiftSDKCore/RestRequest.swift:28:23: note: static property declared here
26 | /// The "User-Agent" header that will be sent with every network request
27 | /// This can include information such as the operating system and the SDK/framework calling this API
28 | public static var userAgent: String?
| `- note: static property declared here
29 |
30 | private let session: URLSession
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeech.swift:98:21: warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
96 | public init(authenticator: Authenticator) {
97 | self.authenticator = authenticator
98 | RestRequest.userAgent = Shared.userAgent
| `- warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
99 | }
100 | #endif
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk-core/Sources/IBMSwiftSDKCore/RestRequest.swift:28:23: note: static property declared here
26 | /// The "User-Agent" header that will be sent with every network request
27 | /// This can include information such as the operating system and the SDK/framework calling this API
28 | public static var userAgent: String?
| `- note: static property declared here
29 |
30 | private let session: URLSession
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV2/Assistant.swift:96:21: warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
94 | self.version = version
95 | self.authenticator = authenticator
96 | RestRequest.userAgent = Shared.userAgent
| `- warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
97 | }
98 | #endif
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk-core/Sources/IBMSwiftSDKCore/RestRequest.swift:28:23: note: static property declared here
26 | /// The "User-Agent" header that will be sent with every network request
27 | /// This can include information such as the operating system and the SDK/framework calling this API
28 | public static var userAgent: String?
| `- note: static property declared here
29 |
30 | private let session: URLSession
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV2/InsecureConnection.swift:33:7: warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV2/Assistant.swift:96:21: warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
94 | self.version = version
95 | self.authenticator = authenticator
96 | RestRequest.userAgent = Shared.userAgent
| `- warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
97 | }
98 | #endif
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk-core/Sources/IBMSwiftSDKCore/RestRequest.swift:28:23: note: static property declared here
26 | /// The "User-Agent" header that will be sent with every network request
27 | /// This can include information such as the operating system and the SDK/framework calling this API
28 | public static var userAgent: String?
| `- note: static property declared here
29 |
30 | private let session: URLSession
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV2/InsecureConnection.swift:33:7: warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV2/Assistant.swift:96:21: warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
94 | self.version = version
95 | self.authenticator = authenticator
96 | RestRequest.userAgent = Shared.userAgent
| `- warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
97 | }
98 | #endif
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk-core/Sources/IBMSwiftSDKCore/RestRequest.swift:28:23: note: static property declared here
26 | /// The "User-Agent" header that will be sent with every network request
27 | /// This can include information such as the operating system and the SDK/framework calling this API
28 | public static var userAgent: String?
| `- note: static property declared here
29 |
30 | private let session: URLSession
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV2/InsecureConnection.swift:33:7: warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV2/Assistant.swift:96:21: warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
94 | self.version = version
95 | self.authenticator = authenticator
96 | RestRequest.userAgent = Shared.userAgent
| `- warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
97 | }
98 | #endif
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk-core/Sources/IBMSwiftSDKCore/RestRequest.swift:28:23: note: static property declared here
26 | /// The "User-Agent" header that will be sent with every network request
27 | /// This can include information such as the operating system and the SDK/framework calling this API
28 | public static var userAgent: String?
| `- note: static property declared here
29 |
30 | private let session: URLSession
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV2/InsecureConnection.swift:33:7: warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV2/Assistant.swift:96:21: warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
94 | self.version = version
95 | self.authenticator = authenticator
96 | RestRequest.userAgent = Shared.userAgent
| `- warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
97 | }
98 | #endif
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk-core/Sources/IBMSwiftSDKCore/RestRequest.swift:28:23: note: static property declared here
26 | /// The "User-Agent" header that will be sent with every network request
27 | /// This can include information such as the operating system and the SDK/framework calling this API
28 | public static var userAgent: String?
| `- note: static property declared here
29 |
30 | private let session: URLSession
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV2/InsecureConnection.swift:33:7: warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV2/Assistant.swift:96:21: warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
94 | self.version = version
95 | self.authenticator = authenticator
96 | RestRequest.userAgent = Shared.userAgent
| `- warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
97 | }
98 | #endif
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk-core/Sources/IBMSwiftSDKCore/RestRequest.swift:28:23: note: static property declared here
26 | /// The "User-Agent" header that will be sent with every network request
27 | /// This can include information such as the operating system and the SDK/framework calling this API
28 | public static var userAgent: String?
| `- note: static property declared here
29 |
30 | private let session: URLSession
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV2/InsecureConnection.swift:33:7: warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV2/Assistant.swift:96:21: warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
94 | self.version = version
95 | self.authenticator = authenticator
96 | RestRequest.userAgent = Shared.userAgent
| `- warning: reference to static property 'userAgent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
97 | }
98 | #endif
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk-core/Sources/IBMSwiftSDKCore/RestRequest.swift:28:23: note: static property declared here
26 | /// The "User-Agent" header that will be sent with every network request
27 | /// This can include information such as the operating system and the SDK/framework calling this API
28 | public static var userAgent: String?
| `- note: static property declared here
29 |
30 | private let session: URLSession
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV2/InsecureConnection.swift:33:7: warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
[179/540] Emitting module AssistantV2
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV2/InsecureConnection.swift:33:7: warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
31 | **IMPORTANT**: This can potentially cause dangerous security breaches, so use only if you are certain that you have taken necessary precautions.
32 | */
33 | class AllowInsecureConnectionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'AllowInsecureConnectionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
34 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
35 | let credential = URLCredential(trust: challenge.protectionSpace.serverTrust!)
[189/549] Compiling AssistantV1 Value.swift
[190/549] Compiling DiscoveryV1 Field.swift
[191/549] Compiling DiscoveryV1 FontSetting.swift
[192/549] Compiling DiscoveryV1 Gateway.swift
[193/549] Compiling DiscoveryV1 GatewayDelete.swift
[194/549] Compiling DiscoveryV1 GatewayList.swift
[195/549] Compiling DiscoveryV1 HTMLSettings.swift
[196/549] Compiling DiscoveryV1 IndexCapacity.swift
[197/549] Compiling DiscoveryV1 ListCollectionFieldsResponse.swift
[204/558] Compiling NaturalLanguageUnderstandingV1 SyntaxResult.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:70:19: error: cannot find 'opus_decoder_create' in scope
68 | // status to catch errors when creating decoder
69 | var status = Int32(0)
70 | decoder = opus_decoder_create(sampleRate, numChannels, &status)
| `- error: cannot find 'opus_decoder_create' in scope
71 |
72 | // initialize ogg sync state
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:129:9: error: cannot find 'opus_multistream_decoder_destroy' in scope
127 |
128 | // perform cleanup
129 | opus_multistream_decoder_destroy(decoder)
| `- error: cannot find 'opus_multistream_decoder_destroy' in scope
130 | if !beginStream {
131 | ogg_stream_clear(&streamState)
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:145:21: error: cannot find 'opus_multistream_decoder_destroy' in scope
143 | if hasOpusStream && hasTagsPacket {
144 | hasOpusStream = false
145 | opus_multistream_decoder_destroy(decoder)
| `- error: cannot find 'opus_multistream_decoder_destroy' in scope
146 | }
147 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:187:17: warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
185 |
186 | // deallocate pcmDataBuffer when the function ends, regardless if the function ended normally or with an error.
187 | defer {
| `- warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
188 | pcmDataBuffer.deallocate()
189 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:205:42: error: cannot find 'opus_multistream_decode_float' in scope
203 |
204 | // Decode opus packet.
205 | numberOfSamplesDecoded = opus_multistream_decode_float(decoder, packet.packet, Int32(packet.bytes), pcmDataBuffer, MAX_FRAME_SIZE, 0)
| `- error: cannot find 'opus_multistream_decode_float' in scope
206 |
207 | if numberOfSamplesDecoded < 0 {
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:208:65: error: cannot find 'opus_strerror' in scope
206 |
207 | if numberOfSamplesDecoded < 0 {
208 | NSLog("Decoding error: \(String(describing: opus_strerror(numberOfSamplesDecoded)))")
| `- error: cannot find 'opus_strerror' in scope
209 | throw OpusError.internalError
210 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:244:19: error: cannot find 'opus_multistream_decoder_create' in scope
242 | }
243 |
244 | decoder = opus_multistream_decoder_create(sampleRate, channels, header.nb_streams, header.nb_coupled, &header.stream_map.0, &status)
| `- error: cannot find 'opus_multistream_decoder_create' in scope
245 | if status != OpusError.okay.rawValue {
246 | throw OpusError.badArgument
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:312:32: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
310 |
311 | var chunkSize = Int32(pcmDataLength + headerSize - 4).littleEndian
312 | let chunkSizePointer = UnsafeBufferPointer(start: &chunkSize, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
313 | header.append(chunkSizePointer)
314 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:323:36: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
321 |
322 | var subchunk1Size = Int32(16).littleEndian
323 | let subchunk1SizePointer = UnsafeBufferPointer(start: &subchunk1Size, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
324 | header.append(subchunk1SizePointer)
325 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:327:34: warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
325 |
326 | var audioFormat = Int16(1).littleEndian
327 | let audioFormatPointer = UnsafeBufferPointer(start: &audioFormat, count: 1)
| | |- note: implicit argument conversion from 'Int16' to 'UnsafePointer<Int16>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
328 | header.append(audioFormatPointer)
329 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:331:40: warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
329 |
330 | var headerNumChannels = Int16(numChannels).littleEndian
331 | let headerNumChannelsPointer = UnsafeBufferPointer(start: &headerNumChannels, count: 1)
| | |- note: implicit argument conversion from 'Int16' to 'UnsafePointer<Int16>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
332 | header.append(headerNumChannelsPointer)
333 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:335:39: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
333 |
334 | var headerSampleRate = Int32(sampleRate).littleEndian
335 | let headerSampleRatePointer = UnsafeBufferPointer(start: &headerSampleRate, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
336 | header.append(headerSampleRatePointer)
337 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:339:31: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
337 |
338 | var byteRate = Int32(sampleRate * numChannels * bitsPerSample / 8).littleEndian
339 | let byteRatePointer = UnsafeBufferPointer(start: &byteRate, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
340 | header.append(byteRatePointer)
341 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:343:33: warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
341 |
342 | var blockAlign = Int16(numChannels * bitsPerSample / 8).littleEndian
343 | let blockAlignPointer = UnsafeBufferPointer(start: &blockAlign, count: 1)
| | |- note: implicit argument conversion from 'Int16' to 'UnsafePointer<Int16>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
344 | header.append(blockAlignPointer)
345 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:347:42: warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
345 |
346 | var headerBitsPerSample = Int16(bitsPerSample).littleEndian
347 | let headerBitsPerSamplePointer = UnsafeBufferPointer(start: &headerBitsPerSample, count: 1)
| | |- note: implicit argument conversion from 'Int16' to 'UnsafePointer<Int16>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
348 | header.append(headerBitsPerSamplePointer)
349 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:355:36: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
353 |
354 | var subchunk2Size = Int32(pcmDataLength).littleEndian
355 | let subchunk2SizePointer = UnsafeBufferPointer(start: &subchunk2Size, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
356 | header.append(subchunk2SizePointer)
357 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:376:28: error: cannot find 'OPUS_OK' in scope
374 | var rawValue: Int32 {
375 | switch self {
376 | case .okay: return OPUS_OK
| `- error: cannot find 'OPUS_OK' in scope
377 | case .badArgument: return OPUS_BAD_ARG
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:377:35: error: cannot find 'OPUS_BAD_ARG' in scope
375 | switch self {
376 | case .okay: return OPUS_OK
377 | case .badArgument: return OPUS_BAD_ARG
| `- error: cannot find 'OPUS_BAD_ARG' in scope
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
379 | case .internalError: return OPUS_INTERNAL_ERROR
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:378:38: error: cannot find 'OPUS_BUFFER_TOO_SMALL' in scope
376 | case .okay: return OPUS_OK
377 | case .badArgument: return OPUS_BAD_ARG
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
| `- error: cannot find 'OPUS_BUFFER_TOO_SMALL' in scope
379 | case .internalError: return OPUS_INTERNAL_ERROR
380 | case .invalidPacket: return OPUS_INVALID_PACKET
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:379:37: error: cannot find 'OPUS_INTERNAL_ERROR' in scope
377 | case .badArgument: return OPUS_BAD_ARG
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
379 | case .internalError: return OPUS_INTERNAL_ERROR
| `- error: cannot find 'OPUS_INTERNAL_ERROR' in scope
380 | case .invalidPacket: return OPUS_INVALID_PACKET
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:380:37: error: cannot find 'OPUS_INVALID_PACKET' in scope
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
379 | case .internalError: return OPUS_INTERNAL_ERROR
380 | case .invalidPacket: return OPUS_INVALID_PACKET
| `- error: cannot find 'OPUS_INVALID_PACKET' in scope
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
382 | case .invalidState: return OPUS_INVALID_STATE
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:381:37: error: cannot find 'OPUS_UNIMPLEMENTED' in scope
379 | case .internalError: return OPUS_INTERNAL_ERROR
380 | case .invalidPacket: return OPUS_INVALID_PACKET
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
| `- error: cannot find 'OPUS_UNIMPLEMENTED' in scope
382 | case .invalidState: return OPUS_INVALID_STATE
383 | case .allocationFailure: return OPUS_ALLOC_FAIL
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:382:36: error: cannot find 'OPUS_INVALID_STATE' in scope
380 | case .invalidPacket: return OPUS_INVALID_PACKET
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
382 | case .invalidState: return OPUS_INVALID_STATE
| `- error: cannot find 'OPUS_INVALID_STATE' in scope
383 | case .allocationFailure: return OPUS_ALLOC_FAIL
384 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:383:41: error: cannot find 'OPUS_ALLOC_FAIL' in scope
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
382 | case .invalidState: return OPUS_INVALID_STATE
383 | case .allocationFailure: return OPUS_ALLOC_FAIL
| `- error: cannot find 'OPUS_ALLOC_FAIL' in scope
384 | }
385 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:389:14: error: cannot find 'OPUS_OK' in scope
387 | init?(rawValue: Int32) {
388 | switch rawValue {
389 | case OPUS_OK: self = .okay
| `- error: cannot find 'OPUS_OK' in scope
390 | case OPUS_BAD_ARG: self = .badArgument
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:390:14: error: cannot find 'OPUS_BAD_ARG' in scope
388 | switch rawValue {
389 | case OPUS_OK: self = .okay
390 | case OPUS_BAD_ARG: self = .badArgument
| `- error: cannot find 'OPUS_BAD_ARG' in scope
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
392 | case OPUS_INTERNAL_ERROR: self = .internalError
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:391:14: error: cannot find 'OPUS_BUFFER_TOO_SMALL' in scope
389 | case OPUS_OK: self = .okay
390 | case OPUS_BAD_ARG: self = .badArgument
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
| `- error: cannot find 'OPUS_BUFFER_TOO_SMALL' in scope
392 | case OPUS_INTERNAL_ERROR: self = .internalError
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:392:14: error: cannot find 'OPUS_INTERNAL_ERROR' in scope
390 | case OPUS_BAD_ARG: self = .badArgument
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
392 | case OPUS_INTERNAL_ERROR: self = .internalError
| `- error: cannot find 'OPUS_INTERNAL_ERROR' in scope
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:393:14: error: cannot find 'OPUS_INVALID_PACKET' in scope
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
392 | case OPUS_INTERNAL_ERROR: self = .internalError
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
| `- error: cannot find 'OPUS_INVALID_PACKET' in scope
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
395 | case OPUS_INVALID_STATE: self = .invalidState
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:394:14: error: cannot find 'OPUS_UNIMPLEMENTED' in scope
392 | case OPUS_INTERNAL_ERROR: self = .internalError
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
| `- error: cannot find 'OPUS_UNIMPLEMENTED' in scope
395 | case OPUS_INVALID_STATE: self = .invalidState
396 | case OPUS_ALLOC_FAIL: self = .allocationFailure
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:395:14: error: cannot find 'OPUS_INVALID_STATE' in scope
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
395 | case OPUS_INVALID_STATE: self = .invalidState
| `- error: cannot find 'OPUS_INVALID_STATE' in scope
396 | case OPUS_ALLOC_FAIL: self = .allocationFailure
397 | default: return nil
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:396:14: error: cannot find 'OPUS_ALLOC_FAIL' in scope
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
395 | case OPUS_INVALID_STATE: self = .invalidState
396 | case OPUS_ALLOC_FAIL: self = .allocationFailure
| `- error: cannot find 'OPUS_ALLOC_FAIL' in scope
397 | default: return nil
398 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:70:19: error: cannot find 'opus_decoder_create' in scope
68 | // status to catch errors when creating decoder
69 | var status = Int32(0)
70 | decoder = opus_decoder_create(sampleRate, numChannels, &status)
| `- error: cannot find 'opus_decoder_create' in scope
71 |
72 | // initialize ogg sync state
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:129:9: error: cannot find 'opus_multistream_decoder_destroy' in scope
127 |
128 | // perform cleanup
129 | opus_multistream_decoder_destroy(decoder)
| `- error: cannot find 'opus_multistream_decoder_destroy' in scope
130 | if !beginStream {
131 | ogg_stream_clear(&streamState)
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:145:21: error: cannot find 'opus_multistream_decoder_destroy' in scope
143 | if hasOpusStream && hasTagsPacket {
144 | hasOpusStream = false
145 | opus_multistream_decoder_destroy(decoder)
| `- error: cannot find 'opus_multistream_decoder_destroy' in scope
146 | }
147 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:187:17: warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
185 |
186 | // deallocate pcmDataBuffer when the function ends, regardless if the function ended normally or with an error.
187 | defer {
| `- warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
188 | pcmDataBuffer.deallocate()
189 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:205:42: error: cannot find 'opus_multistream_decode_float' in scope
203 |
204 | // Decode opus packet.
205 | numberOfSamplesDecoded = opus_multistream_decode_float(decoder, packet.packet, Int32(packet.bytes), pcmDataBuffer, MAX_FRAME_SIZE, 0)
| `- error: cannot find 'opus_multistream_decode_float' in scope
206 |
207 | if numberOfSamplesDecoded < 0 {
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:208:65: error: cannot find 'opus_strerror' in scope
206 |
207 | if numberOfSamplesDecoded < 0 {
208 | NSLog("Decoding error: \(String(describing: opus_strerror(numberOfSamplesDecoded)))")
| `- error: cannot find 'opus_strerror' in scope
209 | throw OpusError.internalError
210 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:244:19: error: cannot find 'opus_multistream_decoder_create' in scope
242 | }
243 |
244 | decoder = opus_multistream_decoder_create(sampleRate, channels, header.nb_streams, header.nb_coupled, &header.stream_map.0, &status)
| `- error: cannot find 'opus_multistream_decoder_create' in scope
245 | if status != OpusError.okay.rawValue {
246 | throw OpusError.badArgument
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:312:32: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
310 |
311 | var chunkSize = Int32(pcmDataLength + headerSize - 4).littleEndian
312 | let chunkSizePointer = UnsafeBufferPointer(start: &chunkSize, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
313 | header.append(chunkSizePointer)
314 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:323:36: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
321 |
322 | var subchunk1Size = Int32(16).littleEndian
323 | let subchunk1SizePointer = UnsafeBufferPointer(start: &subchunk1Size, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
324 | header.append(subchunk1SizePointer)
325 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:327:34: warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
325 |
326 | var audioFormat = Int16(1).littleEndian
327 | let audioFormatPointer = UnsafeBufferPointer(start: &audioFormat, count: 1)
| | |- note: implicit argument conversion from 'Int16' to 'UnsafePointer<Int16>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
328 | header.append(audioFormatPointer)
329 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:331:40: warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
329 |
330 | var headerNumChannels = Int16(numChannels).littleEndian
331 | let headerNumChannelsPointer = UnsafeBufferPointer(start: &headerNumChannels, count: 1)
| | |- note: implicit argument conversion from 'Int16' to 'UnsafePointer<Int16>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
332 | header.append(headerNumChannelsPointer)
333 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:335:39: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
333 |
334 | var headerSampleRate = Int32(sampleRate).littleEndian
335 | let headerSampleRatePointer = UnsafeBufferPointer(start: &headerSampleRate, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
336 | header.append(headerSampleRatePointer)
337 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:339:31: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
337 |
338 | var byteRate = Int32(sampleRate * numChannels * bitsPerSample / 8).littleEndian
339 | let byteRatePointer = UnsafeBufferPointer(start: &byteRate, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
340 | header.append(byteRatePointer)
341 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:343:33: warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
341 |
342 | var blockAlign = Int16(numChannels * bitsPerSample / 8).littleEndian
343 | let blockAlignPointer = UnsafeBufferPointer(start: &blockAlign, count: 1)
| | |- note: implicit argument conversion from 'Int16' to 'UnsafePointer<Int16>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
344 | header.append(blockAlignPointer)
345 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:347:42: warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
345 |
346 | var headerBitsPerSample = Int16(bitsPerSample).littleEndian
347 | let headerBitsPerSamplePointer = UnsafeBufferPointer(start: &headerBitsPerSample, count: 1)
| | |- note: implicit argument conversion from 'Int16' to 'UnsafePointer<Int16>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
348 | header.append(headerBitsPerSamplePointer)
349 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:355:36: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
353 |
354 | var subchunk2Size = Int32(pcmDataLength).littleEndian
355 | let subchunk2SizePointer = UnsafeBufferPointer(start: &subchunk2Size, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
356 | header.append(subchunk2SizePointer)
357 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:376:28: error: cannot find 'OPUS_OK' in scope
374 | var rawValue: Int32 {
375 | switch self {
376 | case .okay: return OPUS_OK
| `- error: cannot find 'OPUS_OK' in scope
377 | case .badArgument: return OPUS_BAD_ARG
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:377:35: error: cannot find 'OPUS_BAD_ARG' in scope
375 | switch self {
376 | case .okay: return OPUS_OK
377 | case .badArgument: return OPUS_BAD_ARG
| `- error: cannot find 'OPUS_BAD_ARG' in scope
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
379 | case .internalError: return OPUS_INTERNAL_ERROR
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:378:38: error: cannot find 'OPUS_BUFFER_TOO_SMALL' in scope
376 | case .okay: return OPUS_OK
377 | case .badArgument: return OPUS_BAD_ARG
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
| `- error: cannot find 'OPUS_BUFFER_TOO_SMALL' in scope
379 | case .internalError: return OPUS_INTERNAL_ERROR
380 | case .invalidPacket: return OPUS_INVALID_PACKET
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:379:37: error: cannot find 'OPUS_INTERNAL_ERROR' in scope
377 | case .badArgument: return OPUS_BAD_ARG
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
379 | case .internalError: return OPUS_INTERNAL_ERROR
| `- error: cannot find 'OPUS_INTERNAL_ERROR' in scope
380 | case .invalidPacket: return OPUS_INVALID_PACKET
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:380:37: error: cannot find 'OPUS_INVALID_PACKET' in scope
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
379 | case .internalError: return OPUS_INTERNAL_ERROR
380 | case .invalidPacket: return OPUS_INVALID_PACKET
| `- error: cannot find 'OPUS_INVALID_PACKET' in scope
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
382 | case .invalidState: return OPUS_INVALID_STATE
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:381:37: error: cannot find 'OPUS_UNIMPLEMENTED' in scope
379 | case .internalError: return OPUS_INTERNAL_ERROR
380 | case .invalidPacket: return OPUS_INVALID_PACKET
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
| `- error: cannot find 'OPUS_UNIMPLEMENTED' in scope
382 | case .invalidState: return OPUS_INVALID_STATE
383 | case .allocationFailure: return OPUS_ALLOC_FAIL
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:382:36: error: cannot find 'OPUS_INVALID_STATE' in scope
380 | case .invalidPacket: return OPUS_INVALID_PACKET
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
382 | case .invalidState: return OPUS_INVALID_STATE
| `- error: cannot find 'OPUS_INVALID_STATE' in scope
383 | case .allocationFailure: return OPUS_ALLOC_FAIL
384 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:383:41: error: cannot find 'OPUS_ALLOC_FAIL' in scope
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
382 | case .invalidState: return OPUS_INVALID_STATE
383 | case .allocationFailure: return OPUS_ALLOC_FAIL
| `- error: cannot find 'OPUS_ALLOC_FAIL' in scope
384 | }
385 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:389:14: error: cannot find 'OPUS_OK' in scope
387 | init?(rawValue: Int32) {
388 | switch rawValue {
389 | case OPUS_OK: self = .okay
| `- error: cannot find 'OPUS_OK' in scope
390 | case OPUS_BAD_ARG: self = .badArgument
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:390:14: error: cannot find 'OPUS_BAD_ARG' in scope
388 | switch rawValue {
389 | case OPUS_OK: self = .okay
390 | case OPUS_BAD_ARG: self = .badArgument
| `- error: cannot find 'OPUS_BAD_ARG' in scope
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
392 | case OPUS_INTERNAL_ERROR: self = .internalError
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:391:14: error: cannot find 'OPUS_BUFFER_TOO_SMALL' in scope
389 | case OPUS_OK: self = .okay
390 | case OPUS_BAD_ARG: self = .badArgument
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
| `- error: cannot find 'OPUS_BUFFER_TOO_SMALL' in scope
392 | case OPUS_INTERNAL_ERROR: self = .internalError
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:392:14: error: cannot find 'OPUS_INTERNAL_ERROR' in scope
390 | case OPUS_BAD_ARG: self = .badArgument
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
392 | case OPUS_INTERNAL_ERROR: self = .internalError
| `- error: cannot find 'OPUS_INTERNAL_ERROR' in scope
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:393:14: error: cannot find 'OPUS_INVALID_PACKET' in scope
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
392 | case OPUS_INTERNAL_ERROR: self = .internalError
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
| `- error: cannot find 'OPUS_INVALID_PACKET' in scope
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
395 | case OPUS_INVALID_STATE: self = .invalidState
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:394:14: error: cannot find 'OPUS_UNIMPLEMENTED' in scope
392 | case OPUS_INTERNAL_ERROR: self = .internalError
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
| `- error: cannot find 'OPUS_UNIMPLEMENTED' in scope
395 | case OPUS_INVALID_STATE: self = .invalidState
396 | case OPUS_ALLOC_FAIL: self = .allocationFailure
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:395:14: error: cannot find 'OPUS_INVALID_STATE' in scope
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
395 | case OPUS_INVALID_STATE: self = .invalidState
| `- error: cannot find 'OPUS_INVALID_STATE' in scope
396 | case OPUS_ALLOC_FAIL: self = .allocationFailure
397 | default: return nil
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:396:14: error: cannot find 'OPUS_ALLOC_FAIL' in scope
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
395 | case OPUS_INVALID_STATE: self = .invalidState
396 | case OPUS_ALLOC_FAIL: self = .allocationFailure
| `- error: cannot find 'OPUS_ALLOC_FAIL' in scope
397 | default: return nil
398 | }
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/AssistantV1Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/AssistantV2Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/DiscoveryV1Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/LanguageTranslatorV3Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/NaturalLanguageUnderstandingV1Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/SpeechToTextV1Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/TextToSpeechV1Tests/WatsonCredentials.swift
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install ogg using your system-packager:
brew install libogg
warning: you may be able to install opus using your system-packager:
brew install opus
warning: you may be able to install ogg using your system-packager:
brew install libogg
warning: you may be able to install opus using your system-packager:
brew install opus
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV1/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV2/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/DiscoveryV1/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/DiscoveryV2/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/LanguageTranslatorV3/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/NaturalLanguageUnderstandingV1/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/SpeechToTextV1/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/README.md
warning: 'starscream': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Starscream/Sources/Info.plist
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/34] Compiling IBMSwiftSDKCore CredentialUtils.swift
[3/35] Compiling IBMSwiftSDKCore RestError.swift
[4/35] Compiling IBMSwiftSDKCore RestResponse.swift
[5/35] Compiling Starscream Compression.swift
[6/35] Compiling Starscream WSCompression.swift
[7/35] Compiling IBMSwiftSDKCore MultipartFormData.swift
[8/35] Compiling IBMSwiftSDKCore JSON.swift
[9/35] Compiling IBMSwiftSDKCore CodableExtensions.swift
[10/35] Compiling IBMSwiftSDKCore RestRequest.swift
[11/35] Emitting module Starscream
[12/37] Compiling Starscream FrameCollector.swift
[13/37] Compiling Starscream Engine.swift
[14/37] Emitting module IBMSwiftSDKCore
[15/37] Compiling Starscream Data+Extensions.swift
[16/37] Compiling Starscream FoundationHTTPServerHandler.swift
[17/37] Compiling Starscream Security.swift
[18/37] Compiling Starscream Server.swift
[19/37] Compiling Starscream StringHTTPHandler.swift
[20/37] Compiling Starscream FoundationSecurity.swift
[21/37] Compiling Starscream FoundationTransport.swift
[22/37] Compiling Starscream TCPTransport.swift
[23/37] Compiling Starscream WebSocketServer.swift
[24/37] Compiling Starscream WebSocket.swift
[25/37] Compiling Starscream Transport.swift
[26/37] Compiling Starscream resource_bundle_accessor.swift
[27/464] Compiling AssistantV2 ChannelTransferInfo.swift
[28/464] Compiling AssistantV2 ChannelTransferTarget.swift
[29/464] Compiling AssistantV2 BulkClassifyUtterance.swift
[30/464] Compiling AssistantV2 CaptureGroup.swift
[31/464] Compiling AssistantV2 BulkClassifyOutput.swift
[32/464] Compiling AssistantV2 BulkClassifyResponse.swift
[33/464] Compiling AssistantV2 Assistant.swift
[34/464] Compiling AssistantV2 InsecureConnection.swift
[35/464] Compiling AssistantV2 AgentAvailabilityMessage.swift
[36/464] Compiling AssistantV2 ChannelTransferTargetChat.swift
[37/464] Compiling AssistantV2 DialogLogMessage.swift
[38/464] Compiling LanguageTranslatorV3 TranslationModels.swift
[39/464] Compiling LanguageTranslatorV3 TranslationResult.swift
[42/465] Compiling LanguageTranslatorV3 TranslationModel.swift
[46/465] Compiling AssistantV2 DialogNodeAction.swift
[47/513] Compiling SpeechToTextV1 AcousticModels.swift
[48/513] Compiling SpeechToTextV1 AudioDetails.swift
[49/513] Compiling SpeechToTextV1 AudioListing.swift
[50/513] Compiling SpeechToTextV1 AudioMetrics.swift
[54/515] Compiling SpeechToTextV1 InsecureConnection.swift
[55/515] Compiling SpeechToTextV1 AcousticModel.swift
[57/515] Compiling SpeechToTextV1 LanguageModels.swift
[58/515] Compiling SpeechToTextV1 ProcessedAudio.swift
[59/515] Compiling SpeechToTextV1 RegisterStatus.swift
[60/515] Compiling SpeechToTextV1 SpeakerLabelsResult.swift
[61/515] Compiling SpeechToTextV1 SpeechModel.swift
[62/515] Compiling SpeechToTextV1 SpeechModels.swift
[63/515] Compiling SpeechToTextV1 SpeechRecognitionAlternative.swift
[64/515] Compiling SpeechToTextV1 ProcessingMetrics.swift
[65/515] Compiling SpeechToTextV1 RecognitionJob.swift
[66/515] Compiling SpeechToTextV1 RecognitionJobs.swift
[67/515] Compiling SpeechToTextV1 WordTimestamp.swift
[68/515] Compiling LanguageTranslatorV3 Shared.swift
[69/515] Emitting module TextToSpeechV1
[70/515] Emitting module LanguageTranslatorV3
[73/515] Compiling TextToSpeechV1 TextToSpeechDecoder.swift
[74/515] Compiling TextToSpeechV1 WAVRepair.swift
[75/515] Compiling SpeechToTextV1 AudioResource.swift
[76/515] Compiling SpeechToTextV1 AudioResources.swift
[77/515] Compiling SpeechToTextV1 Corpora.swift
[78/515] Compiling SpeechToTextV1 Corpus.swift
[79/515] Compiling SpeechToTextV1 SpeechRecognitionResult.swift
[80/522] Compiling DiscoveryV1 MetricTokenAggregationResult.swift
[81/522] Compiling DiscoveryV1 MetricTokenResponse.swift
[82/522] Compiling DiscoveryV1 NluEnrichmentConcepts.swift
[83/522] Compiling DiscoveryV1 NluEnrichmentEmotion.swift
[84/522] Compiling DiscoveryV1 NluEnrichmentEntities.swift
[85/522] Compiling DiscoveryV1 NluEnrichmentFeatures.swift
[86/528] Compiling SpeechToTextV1 Word.swift
[87/528] Compiling SpeechToTextV1 WordAlternativeResult.swift
[88/528] Compiling SpeechToTextV1 WordAlternativeResults.swift
[89/528] Compiling SpeechToTextV1 WordConfidence.swift
[90/528] Compiling SpeechToTextV1 WordError.swift
[91/528] Compiling SpeechToTextV1 RecognitionSettings.swift
[92/528] Compiling SpeechToTextV1 RecognitionState.swift
[93/528] Compiling SpeechToTextV1 RecognitionStop.swift
[94/528] Compiling SpeechToTextV1 RecognizeCallback.swift
[95/528] Compiling SpeechToTextV1 SpeechRecognitionResultsAccumulator.swift
[96/528] Compiling DiscoveryV1 MetricResponse.swift
[97/528] Compiling DiscoveryV1 MetricTokenAggregation.swift
[98/528] Compiling SpeechToTextV1 TrainingWarning.swift
[99/528] Compiling SpeechToTextV1 CustomWord.swift
[100/528] Compiling SpeechToTextV1 Grammar.swift
[101/528] Compiling SpeechToTextV1 Grammars.swift
[102/528] Compiling SpeechToTextV1 KeywordResult.swift
[103/528] Compiling SpeechToTextV1 LanguageModel.swift
[114/528] Compiling SpeechToTextV1 Words.swift
[115/528] Compiling SpeechToTextV1 Shared.swift
[116/528] Compiling SpeechToTextV1 SpeechToText+Recognize.swift
[117/528] Compiling SpeechToTextV1 SpeechToText.swift
[125/528] Compiling SpeechToTextV1 SpeechRecognitionResults.swift
[126/528] Compiling SpeechToTextV1 SupportedFeatures.swift
[127/528] Compiling SpeechToTextV1 TrainingResponse.swift
[128/528] Compiling NaturalLanguageUnderstandingV1 TargetedEmotionResults.swift
[129/528] Compiling NaturalLanguageUnderstandingV1 TargetedSentimentResults.swift
[130/528] Compiling NaturalLanguageUnderstandingV1 TokenResult.swift
[131/528] Compiling NaturalLanguageUnderstandingV1 NaturalLanguageUnderstanding.swift
[132/528] Compiling NaturalLanguageUnderstandingV1 Shared.swift
[133/528] Compiling DiscoveryV1 PDFHeadingDetection.swift
[134/528] Compiling DiscoveryV1 PDFSettings.swift
[135/528] Compiling DiscoveryV1 QueryResult.swift
[136/528] Compiling DiscoveryV1 QueryResultMetadata.swift
[137/528] Compiling DiscoveryV1 QueryTermAggregation.swift
[138/528] Compiling DiscoveryV1 QueryTermAggregationResult.swift
[139/528] Compiling DiscoveryV1 QueryTimesliceAggregation.swift
[140/528] Compiling DiscoveryV1 QueryTimesliceAggregationResult.swift
[141/528] Compiling DiscoveryV1 QueryTopHitsAggregation.swift
[142/528] Compiling DiscoveryV1 QueryTopHitsAggregationResult.swift
[143/528] Compiling DiscoveryV1 RetrievalDetails.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:70:19: error: cannot find 'opus_decoder_create' in scope
68 | // status to catch errors when creating decoder
69 | var status = Int32(0)
70 | decoder = opus_decoder_create(sampleRate, numChannels, &status)
| `- error: cannot find 'opus_decoder_create' in scope
71 |
72 | // initialize ogg sync state
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:129:9: error: cannot find 'opus_multistream_decoder_destroy' in scope
127 |
128 | // perform cleanup
129 | opus_multistream_decoder_destroy(decoder)
| `- error: cannot find 'opus_multistream_decoder_destroy' in scope
130 | if !beginStream {
131 | ogg_stream_clear(&streamState)
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:145:21: error: cannot find 'opus_multistream_decoder_destroy' in scope
143 | if hasOpusStream && hasTagsPacket {
144 | hasOpusStream = false
145 | opus_multistream_decoder_destroy(decoder)
| `- error: cannot find 'opus_multistream_decoder_destroy' in scope
146 | }
147 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:187:17: warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
185 |
186 | // deallocate pcmDataBuffer when the function ends, regardless if the function ended normally or with an error.
187 | defer {
| `- warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
188 | pcmDataBuffer.deallocate()
189 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:205:42: error: cannot find 'opus_multistream_decode_float' in scope
203 |
204 | // Decode opus packet.
205 | numberOfSamplesDecoded = opus_multistream_decode_float(decoder, packet.packet, Int32(packet.bytes), pcmDataBuffer, MAX_FRAME_SIZE, 0)
| `- error: cannot find 'opus_multistream_decode_float' in scope
206 |
207 | if numberOfSamplesDecoded < 0 {
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:208:65: error: cannot find 'opus_strerror' in scope
206 |
207 | if numberOfSamplesDecoded < 0 {
208 | NSLog("Decoding error: \(String(describing: opus_strerror(numberOfSamplesDecoded)))")
| `- error: cannot find 'opus_strerror' in scope
209 | throw OpusError.internalError
210 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:244:19: error: cannot find 'opus_multistream_decoder_create' in scope
242 | }
243 |
244 | decoder = opus_multistream_decoder_create(sampleRate, channels, header.nb_streams, header.nb_coupled, &header.stream_map.0, &status)
| `- error: cannot find 'opus_multistream_decoder_create' in scope
245 | if status != OpusError.okay.rawValue {
246 | throw OpusError.badArgument
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:312:32: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
310 |
311 | var chunkSize = Int32(pcmDataLength + headerSize - 4).littleEndian
312 | let chunkSizePointer = UnsafeBufferPointer(start: &chunkSize, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
313 | header.append(chunkSizePointer)
314 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:323:36: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
321 |
322 | var subchunk1Size = Int32(16).littleEndian
323 | let subchunk1SizePointer = UnsafeBufferPointer(start: &subchunk1Size, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
324 | header.append(subchunk1SizePointer)
325 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:327:34: warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
325 |
326 | var audioFormat = Int16(1).littleEndian
327 | let audioFormatPointer = UnsafeBufferPointer(start: &audioFormat, count: 1)
| | |- note: implicit argument conversion from 'Int16' to 'UnsafePointer<Int16>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
328 | header.append(audioFormatPointer)
329 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:331:40: warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
329 |
330 | var headerNumChannels = Int16(numChannels).littleEndian
331 | let headerNumChannelsPointer = UnsafeBufferPointer(start: &headerNumChannels, count: 1)
| | |- note: implicit argument conversion from 'Int16' to 'UnsafePointer<Int16>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
332 | header.append(headerNumChannelsPointer)
333 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:335:39: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
333 |
334 | var headerSampleRate = Int32(sampleRate).littleEndian
335 | let headerSampleRatePointer = UnsafeBufferPointer(start: &headerSampleRate, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
336 | header.append(headerSampleRatePointer)
337 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:339:31: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
337 |
338 | var byteRate = Int32(sampleRate * numChannels * bitsPerSample / 8).littleEndian
339 | let byteRatePointer = UnsafeBufferPointer(start: &byteRate, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
340 | header.append(byteRatePointer)
341 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:343:33: warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
341 |
342 | var blockAlign = Int16(numChannels * bitsPerSample / 8).littleEndian
343 | let blockAlignPointer = UnsafeBufferPointer(start: &blockAlign, count: 1)
| | |- note: implicit argument conversion from 'Int16' to 'UnsafePointer<Int16>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
344 | header.append(blockAlignPointer)
345 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:347:42: warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
345 |
346 | var headerBitsPerSample = Int16(bitsPerSample).littleEndian
347 | let headerBitsPerSamplePointer = UnsafeBufferPointer(start: &headerBitsPerSample, count: 1)
| | |- note: implicit argument conversion from 'Int16' to 'UnsafePointer<Int16>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
348 | header.append(headerBitsPerSamplePointer)
349 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:355:36: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
353 |
354 | var subchunk2Size = Int32(pcmDataLength).littleEndian
355 | let subchunk2SizePointer = UnsafeBufferPointer(start: &subchunk2Size, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
356 | header.append(subchunk2SizePointer)
357 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:376:28: error: cannot find 'OPUS_OK' in scope
374 | var rawValue: Int32 {
375 | switch self {
376 | case .okay: return OPUS_OK
| `- error: cannot find 'OPUS_OK' in scope
377 | case .badArgument: return OPUS_BAD_ARG
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:377:35: error: cannot find 'OPUS_BAD_ARG' in scope
375 | switch self {
376 | case .okay: return OPUS_OK
377 | case .badArgument: return OPUS_BAD_ARG
| `- error: cannot find 'OPUS_BAD_ARG' in scope
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
379 | case .internalError: return OPUS_INTERNAL_ERROR
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:378:38: error: cannot find 'OPUS_BUFFER_TOO_SMALL' in scope
376 | case .okay: return OPUS_OK
377 | case .badArgument: return OPUS_BAD_ARG
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
| `- error: cannot find 'OPUS_BUFFER_TOO_SMALL' in scope
379 | case .internalError: return OPUS_INTERNAL_ERROR
380 | case .invalidPacket: return OPUS_INVALID_PACKET
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:379:37: error: cannot find 'OPUS_INTERNAL_ERROR' in scope
377 | case .badArgument: return OPUS_BAD_ARG
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
379 | case .internalError: return OPUS_INTERNAL_ERROR
| `- error: cannot find 'OPUS_INTERNAL_ERROR' in scope
380 | case .invalidPacket: return OPUS_INVALID_PACKET
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:380:37: error: cannot find 'OPUS_INVALID_PACKET' in scope
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
379 | case .internalError: return OPUS_INTERNAL_ERROR
380 | case .invalidPacket: return OPUS_INVALID_PACKET
| `- error: cannot find 'OPUS_INVALID_PACKET' in scope
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
382 | case .invalidState: return OPUS_INVALID_STATE
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:381:37: error: cannot find 'OPUS_UNIMPLEMENTED' in scope
379 | case .internalError: return OPUS_INTERNAL_ERROR
380 | case .invalidPacket: return OPUS_INVALID_PACKET
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
| `- error: cannot find 'OPUS_UNIMPLEMENTED' in scope
382 | case .invalidState: return OPUS_INVALID_STATE
383 | case .allocationFailure: return OPUS_ALLOC_FAIL
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:382:36: error: cannot find 'OPUS_INVALID_STATE' in scope
380 | case .invalidPacket: return OPUS_INVALID_PACKET
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
382 | case .invalidState: return OPUS_INVALID_STATE
| `- error: cannot find 'OPUS_INVALID_STATE' in scope
383 | case .allocationFailure: return OPUS_ALLOC_FAIL
384 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:383:41: error: cannot find 'OPUS_ALLOC_FAIL' in scope
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
382 | case .invalidState: return OPUS_INVALID_STATE
383 | case .allocationFailure: return OPUS_ALLOC_FAIL
| `- error: cannot find 'OPUS_ALLOC_FAIL' in scope
384 | }
385 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:389:14: error: cannot find 'OPUS_OK' in scope
387 | init?(rawValue: Int32) {
388 | switch rawValue {
389 | case OPUS_OK: self = .okay
| `- error: cannot find 'OPUS_OK' in scope
390 | case OPUS_BAD_ARG: self = .badArgument
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:390:14: error: cannot find 'OPUS_BAD_ARG' in scope
388 | switch rawValue {
389 | case OPUS_OK: self = .okay
390 | case OPUS_BAD_ARG: self = .badArgument
| `- error: cannot find 'OPUS_BAD_ARG' in scope
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
392 | case OPUS_INTERNAL_ERROR: self = .internalError
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:391:14: error: cannot find 'OPUS_BUFFER_TOO_SMALL' in scope
389 | case OPUS_OK: self = .okay
390 | case OPUS_BAD_ARG: self = .badArgument
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
| `- error: cannot find 'OPUS_BUFFER_TOO_SMALL' in scope
392 | case OPUS_INTERNAL_ERROR: self = .internalError
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:392:14: error: cannot find 'OPUS_INTERNAL_ERROR' in scope
390 | case OPUS_BAD_ARG: self = .badArgument
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
392 | case OPUS_INTERNAL_ERROR: self = .internalError
| `- error: cannot find 'OPUS_INTERNAL_ERROR' in scope
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:393:14: error: cannot find 'OPUS_INVALID_PACKET' in scope
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
392 | case OPUS_INTERNAL_ERROR: self = .internalError
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
| `- error: cannot find 'OPUS_INVALID_PACKET' in scope
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
395 | case OPUS_INVALID_STATE: self = .invalidState
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:394:14: error: cannot find 'OPUS_UNIMPLEMENTED' in scope
392 | case OPUS_INTERNAL_ERROR: self = .internalError
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
| `- error: cannot find 'OPUS_UNIMPLEMENTED' in scope
395 | case OPUS_INVALID_STATE: self = .invalidState
396 | case OPUS_ALLOC_FAIL: self = .allocationFailure
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:395:14: error: cannot find 'OPUS_INVALID_STATE' in scope
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
395 | case OPUS_INVALID_STATE: self = .invalidState
| `- error: cannot find 'OPUS_INVALID_STATE' in scope
396 | case OPUS_ALLOC_FAIL: self = .allocationFailure
397 | default: return nil
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:396:14: error: cannot find 'OPUS_ALLOC_FAIL' in scope
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
395 | case OPUS_INVALID_STATE: self = .invalidState
396 | case OPUS_ALLOC_FAIL: self = .allocationFailure
| `- error: cannot find 'OPUS_ALLOC_FAIL' in scope
397 | default: return nil
398 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:70:19: error: cannot find 'opus_decoder_create' in scope
68 | // status to catch errors when creating decoder
69 | var status = Int32(0)
70 | decoder = opus_decoder_create(sampleRate, numChannels, &status)
| `- error: cannot find 'opus_decoder_create' in scope
71 |
72 | // initialize ogg sync state
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:129:9: error: cannot find 'opus_multistream_decoder_destroy' in scope
127 |
128 | // perform cleanup
129 | opus_multistream_decoder_destroy(decoder)
| `- error: cannot find 'opus_multistream_decoder_destroy' in scope
130 | if !beginStream {
131 | ogg_stream_clear(&streamState)
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:145:21: error: cannot find 'opus_multistream_decoder_destroy' in scope
143 | if hasOpusStream && hasTagsPacket {
144 | hasOpusStream = false
145 | opus_multistream_decoder_destroy(decoder)
| `- error: cannot find 'opus_multistream_decoder_destroy' in scope
146 | }
147 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:187:17: warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
185 |
186 | // deallocate pcmDataBuffer when the function ends, regardless if the function ended normally or with an error.
187 | defer {
| `- warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
188 | pcmDataBuffer.deallocate()
189 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:205:42: error: cannot find 'opus_multistream_decode_float' in scope
203 |
204 | // Decode opus packet.
205 | numberOfSamplesDecoded = opus_multistream_decode_float(decoder, packet.packet, Int32(packet.bytes), pcmDataBuffer, MAX_FRAME_SIZE, 0)
| `- error: cannot find 'opus_multistream_decode_float' in scope
206 |
207 | if numberOfSamplesDecoded < 0 {
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:208:65: error: cannot find 'opus_strerror' in scope
206 |
207 | if numberOfSamplesDecoded < 0 {
208 | NSLog("Decoding error: \(String(describing: opus_strerror(numberOfSamplesDecoded)))")
| `- error: cannot find 'opus_strerror' in scope
209 | throw OpusError.internalError
210 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:244:19: error: cannot find 'opus_multistream_decoder_create' in scope
242 | }
243 |
244 | decoder = opus_multistream_decoder_create(sampleRate, channels, header.nb_streams, header.nb_coupled, &header.stream_map.0, &status)
| `- error: cannot find 'opus_multistream_decoder_create' in scope
245 | if status != OpusError.okay.rawValue {
246 | throw OpusError.badArgument
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:312:32: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
310 |
311 | var chunkSize = Int32(pcmDataLength + headerSize - 4).littleEndian
312 | let chunkSizePointer = UnsafeBufferPointer(start: &chunkSize, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
313 | header.append(chunkSizePointer)
314 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:323:36: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
321 |
322 | var subchunk1Size = Int32(16).littleEndian
323 | let subchunk1SizePointer = UnsafeBufferPointer(start: &subchunk1Size, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
324 | header.append(subchunk1SizePointer)
325 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:327:34: warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
325 |
326 | var audioFormat = Int16(1).littleEndian
327 | let audioFormatPointer = UnsafeBufferPointer(start: &audioFormat, count: 1)
| | |- note: implicit argument conversion from 'Int16' to 'UnsafePointer<Int16>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
328 | header.append(audioFormatPointer)
329 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:331:40: warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
329 |
330 | var headerNumChannels = Int16(numChannels).littleEndian
331 | let headerNumChannelsPointer = UnsafeBufferPointer(start: &headerNumChannels, count: 1)
| | |- note: implicit argument conversion from 'Int16' to 'UnsafePointer<Int16>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
332 | header.append(headerNumChannelsPointer)
333 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:335:39: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
333 |
334 | var headerSampleRate = Int32(sampleRate).littleEndian
335 | let headerSampleRatePointer = UnsafeBufferPointer(start: &headerSampleRate, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
336 | header.append(headerSampleRatePointer)
337 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:339:31: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
337 |
338 | var byteRate = Int32(sampleRate * numChannels * bitsPerSample / 8).littleEndian
339 | let byteRatePointer = UnsafeBufferPointer(start: &byteRate, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
340 | header.append(byteRatePointer)
341 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:343:33: warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
341 |
342 | var blockAlign = Int16(numChannels * bitsPerSample / 8).littleEndian
343 | let blockAlignPointer = UnsafeBufferPointer(start: &blockAlign, count: 1)
| | |- note: implicit argument conversion from 'Int16' to 'UnsafePointer<Int16>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
344 | header.append(blockAlignPointer)
345 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:347:42: warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
345 |
346 | var headerBitsPerSample = Int16(bitsPerSample).littleEndian
347 | let headerBitsPerSamplePointer = UnsafeBufferPointer(start: &headerBitsPerSample, count: 1)
| | |- note: implicit argument conversion from 'Int16' to 'UnsafePointer<Int16>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int16>' results in a dangling buffer pointer
348 | header.append(headerBitsPerSamplePointer)
349 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:355:36: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
353 |
354 | var subchunk2Size = Int32(pcmDataLength).littleEndian
355 | let subchunk2SizePointer = UnsafeBufferPointer(start: &subchunk2Size, count: 1)
| | |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
| `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
356 | header.append(subchunk2SizePointer)
357 |
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:376:28: error: cannot find 'OPUS_OK' in scope
374 | var rawValue: Int32 {
375 | switch self {
376 | case .okay: return OPUS_OK
| `- error: cannot find 'OPUS_OK' in scope
377 | case .badArgument: return OPUS_BAD_ARG
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:377:35: error: cannot find 'OPUS_BAD_ARG' in scope
375 | switch self {
376 | case .okay: return OPUS_OK
377 | case .badArgument: return OPUS_BAD_ARG
| `- error: cannot find 'OPUS_BAD_ARG' in scope
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
379 | case .internalError: return OPUS_INTERNAL_ERROR
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:378:38: error: cannot find 'OPUS_BUFFER_TOO_SMALL' in scope
376 | case .okay: return OPUS_OK
377 | case .badArgument: return OPUS_BAD_ARG
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
| `- error: cannot find 'OPUS_BUFFER_TOO_SMALL' in scope
379 | case .internalError: return OPUS_INTERNAL_ERROR
380 | case .invalidPacket: return OPUS_INVALID_PACKET
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:379:37: error: cannot find 'OPUS_INTERNAL_ERROR' in scope
377 | case .badArgument: return OPUS_BAD_ARG
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
379 | case .internalError: return OPUS_INTERNAL_ERROR
| `- error: cannot find 'OPUS_INTERNAL_ERROR' in scope
380 | case .invalidPacket: return OPUS_INVALID_PACKET
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:380:37: error: cannot find 'OPUS_INVALID_PACKET' in scope
378 | case .bufferTooSmall: return OPUS_BUFFER_TOO_SMALL
379 | case .internalError: return OPUS_INTERNAL_ERROR
380 | case .invalidPacket: return OPUS_INVALID_PACKET
| `- error: cannot find 'OPUS_INVALID_PACKET' in scope
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
382 | case .invalidState: return OPUS_INVALID_STATE
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:381:37: error: cannot find 'OPUS_UNIMPLEMENTED' in scope
379 | case .internalError: return OPUS_INTERNAL_ERROR
380 | case .invalidPacket: return OPUS_INVALID_PACKET
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
| `- error: cannot find 'OPUS_UNIMPLEMENTED' in scope
382 | case .invalidState: return OPUS_INVALID_STATE
383 | case .allocationFailure: return OPUS_ALLOC_FAIL
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:382:36: error: cannot find 'OPUS_INVALID_STATE' in scope
380 | case .invalidPacket: return OPUS_INVALID_PACKET
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
382 | case .invalidState: return OPUS_INVALID_STATE
| `- error: cannot find 'OPUS_INVALID_STATE' in scope
383 | case .allocationFailure: return OPUS_ALLOC_FAIL
384 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:383:41: error: cannot find 'OPUS_ALLOC_FAIL' in scope
381 | case .unimplemented: return OPUS_UNIMPLEMENTED
382 | case .invalidState: return OPUS_INVALID_STATE
383 | case .allocationFailure: return OPUS_ALLOC_FAIL
| `- error: cannot find 'OPUS_ALLOC_FAIL' in scope
384 | }
385 | }
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:389:14: error: cannot find 'OPUS_OK' in scope
387 | init?(rawValue: Int32) {
388 | switch rawValue {
389 | case OPUS_OK: self = .okay
| `- error: cannot find 'OPUS_OK' in scope
390 | case OPUS_BAD_ARG: self = .badArgument
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:390:14: error: cannot find 'OPUS_BAD_ARG' in scope
388 | switch rawValue {
389 | case OPUS_OK: self = .okay
390 | case OPUS_BAD_ARG: self = .badArgument
| `- error: cannot find 'OPUS_BAD_ARG' in scope
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
392 | case OPUS_INTERNAL_ERROR: self = .internalError
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:391:14: error: cannot find 'OPUS_BUFFER_TOO_SMALL' in scope
389 | case OPUS_OK: self = .okay
390 | case OPUS_BAD_ARG: self = .badArgument
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
| `- error: cannot find 'OPUS_BUFFER_TOO_SMALL' in scope
392 | case OPUS_INTERNAL_ERROR: self = .internalError
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:392:14: error: cannot find 'OPUS_INTERNAL_ERROR' in scope
390 | case OPUS_BAD_ARG: self = .badArgument
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
392 | case OPUS_INTERNAL_ERROR: self = .internalError
| `- error: cannot find 'OPUS_INTERNAL_ERROR' in scope
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:393:14: error: cannot find 'OPUS_INVALID_PACKET' in scope
391 | case OPUS_BUFFER_TOO_SMALL: self = .bufferTooSmall
392 | case OPUS_INTERNAL_ERROR: self = .internalError
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
| `- error: cannot find 'OPUS_INVALID_PACKET' in scope
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
395 | case OPUS_INVALID_STATE: self = .invalidState
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:394:14: error: cannot find 'OPUS_UNIMPLEMENTED' in scope
392 | case OPUS_INTERNAL_ERROR: self = .internalError
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
| `- error: cannot find 'OPUS_UNIMPLEMENTED' in scope
395 | case OPUS_INVALID_STATE: self = .invalidState
396 | case OPUS_ALLOC_FAIL: self = .allocationFailure
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:395:14: error: cannot find 'OPUS_INVALID_STATE' in scope
393 | case OPUS_INVALID_PACKET: self = .invalidPacket
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
395 | case OPUS_INVALID_STATE: self = .invalidState
| `- error: cannot find 'OPUS_INVALID_STATE' in scope
396 | case OPUS_ALLOC_FAIL: self = .allocationFailure
397 | default: return nil
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/TextToSpeechDecoder.swift:396:14: error: cannot find 'OPUS_ALLOC_FAIL' in scope
394 | case OPUS_UNIMPLEMENTED: self = .unimplemented
395 | case OPUS_INVALID_STATE: self = .invalidState
396 | case OPUS_ALLOC_FAIL: self = .allocationFailure
| `- error: cannot find 'OPUS_ALLOC_FAIL' in scope
397 | default: return nil
398 | }
[180/537] Emitting module NaturalLanguageUnderstandingV1
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/AssistantV1Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/AssistantV2Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/DiscoveryV1Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/LanguageTranslatorV3Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/NaturalLanguageUnderstandingV1Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/SpeechToTextV1Tests/WatsonCredentials.swift
warning: 'spi-builder-workspace': ignoring broken symlink /Users/admin/builder/spi-builder-workspace/Tests/TextToSpeechV1Tests/WatsonCredentials.swift
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install ogg using your system-packager:
brew install libogg
warning: you may be able to install opus using your system-packager:
brew install opus
warning: you may be able to install ogg using your system-packager:
brew install libogg
warning: you may be able to install opus using your system-packager:
brew install opus
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Tests/TextToSpeechV1Tests/Resources/audio.ogg
/Users/admin/builder/spi-builder-workspace/Tests/TextToSpeechV1Tests/Resources/custom_prompt_audio.wav
warning: 'spi-builder-workspace': found 6 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Tests/SpeechToTextV1Tests/Resources/confirm.abnf
/Users/admin/builder/spi-builder-workspace/Tests/SpeechToTextV1Tests/Resources/healthcare-short.txt
/Users/admin/builder/spi-builder-workspace/Tests/SpeechToTextV1Tests/Resources/SpeechSample.flac
/Users/admin/builder/spi-builder-workspace/Tests/SpeechToTextV1Tests/Resources/SpeechSample.ogg
/Users/admin/builder/spi-builder-workspace/Tests/SpeechToTextV1Tests/Resources/SpeechSample.wav
/Users/admin/builder/spi-builder-workspace/Tests/SpeechToTextV1Tests/Resources/StockAnnouncement.wav
warning: 'spi-builder-workspace': found 4 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Tests/NaturalLanguageUnderstandingV1Tests/Resources/nlu_categories_training.json
/Users/admin/builder/spi-builder-workspace/Tests/NaturalLanguageUnderstandingV1Tests/testArticle.html
/Users/admin/builder/spi-builder-workspace/Tests/NaturalLanguageUnderstandingV1Tests/Resources/nlu_classifications_training.json
/Users/admin/builder/spi-builder-workspace/Tests/NaturalLanguageUnderstandingV1Tests/Resources/nlu_training_data.csv
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Tests/LanguageTranslatorV3Tests/Resources/common-phrases.pptx
/Users/admin/builder/spi-builder-workspace/Tests/LanguageTranslatorV3Tests/Resources/glossary.tmx
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Tests/DiscoveryV2Tests/Resources/analyzeDocument.json
/Users/admin/builder/spi-builder-workspace/Tests/DiscoveryV2Tests/Resources/KennedySpeech.html
/Users/admin/builder/spi-builder-workspace/Tests/DiscoveryV2Tests/Resources/Jeopardy.html
/Users/admin/builder/spi-builder-workspace/Tests/DiscoveryV2Tests/Resources/analyzeDocument.txt
/Users/admin/builder/spi-builder-workspace/Tests/DiscoveryV2Tests/Resources/TestEnrichments.csv
warning: 'spi-builder-workspace': found 4 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Tests/DiscoveryV1Tests/Resources/KennedySpeech.html
/Users/admin/builder/spi-builder-workspace/Tests/DiscoveryV1Tests/Resources/discoverySample.json
/Users/admin/builder/spi-builder-workspace/Tests/DiscoveryV1Tests/Resources/stopwords.txt
/Users/admin/builder/spi-builder-workspace/Tests/DiscoveryV1Tests/Resources/metadata.json
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV1/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/AssistantV2/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/DiscoveryV1/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/DiscoveryV2/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/LanguageTranslatorV3/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/NaturalLanguageUnderstandingV1/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/SpeechToTextV1/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/TextToSpeechV1/README.md
warning: 'starscream': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Starscream/Sources/Info.plist
BUILD FAILURE 6.1 macosSpm