Build Information
Failed to build WatsonDeveloperCloud, reference master (8359f8
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 07:25:50 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/watson-developer-cloud/swift-sdk.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/watson-developer-cloud/swift-sdk
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
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 master
Fetching https://github.com/IBM/swift-sdk-core
Fetching https://github.com/daltoniam/Starscream
[1/988] Fetching swift-sdk-core
[456/5890] Fetching swift-sdk-core, starscream
Fetched https://github.com/daltoniam/Starscream from cache (1.22s)
Fetched https://github.com/IBM/swift-sdk-core from cache (1.22s)
Computing version for https://github.com/IBM/swift-sdk-core
Computed https://github.com/IBM/swift-sdk-core at 1.2.1 (3.08s)
Computing version for https://github.com/daltoniam/Starscream
Computed https://github.com/daltoniam/Starscream at 4.0.8 (0.82s)
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
Creating working copy for https://github.com/daltoniam/Starscream
Working copy of https://github.com/daltoniam/Starscream resolved at 4.0.8
========================================
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/79692] Fetching swift-sdk
Fetched https://github.com/watson-developer-cloud/swift-sdk.git from cache (6.50s)
Fetching https://github.com/daltoniam/Starscream from cache
Fetching https://github.com/IBM/swift-sdk-core from cache
Fetched https://github.com/daltoniam/Starscream from cache (0.54s)
Fetched https://github.com/IBM/swift-sdk-core from cache (0.54s)
Computing version for https://github.com/IBM/swift-sdk-core
Computed https://github.com/IBM/swift-sdk-core at 1.2.1 (0.03s)
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/IBM/swift-sdk-core
Working copy of https://github.com/IBM/swift-sdk-core resolved at 1.2.1
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 master (8359f8d)
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.0
Building package at path: $PWD
https://github.com/watson-developer-cloud/swift-sdk.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/13] Write sources
[3/13] Copying PrivacyInfo.xcprivacy
[3/13] Write sources
[11/13] Write swift-version--7754E27361AE5C74.txt
[12/46] Compiling Copustools opus_header.c
[14/46] Emitting module Starscream
[15/48] Compiling IBMSwiftSDKCore RestRequest.swift
[16/48] Compiling IBMSwiftSDKCore RestError.swift
[17/49] Compiling IBMSwiftSDKCore MultipartFormData.swift
[18/49] Compiling Starscream Transport.swift
[19/49] Compiling Starscream resource_bundle_accessor.swift
[20/49] Compiling IBMSwiftSDKCore CredentialUtils.swift
[21/49] Compiling IBMSwiftSDKCore CodableExtensions.swift
[22/49] Compiling IBMSwiftSDKCore JSON.swift
[23/49] Compiling Starscream FoundationHTTPServerHandler.swift
[24/49] Compiling Starscream FrameCollector.swift
[25/49] Compiling Starscream Framer.swift
[26/49] Compiling Starscream HTTPHandler.swift
[27/49] Emitting module IBMSwiftSDKCore
[28/49] Compiling Starscream Compression.swift
[29/49] Compiling Starscream WSCompression.swift
[30/49] Compiling Starscream NativeEngine.swift
[31/49] Compiling Starscream WSEngine.swift
[32/49] Compiling Starscream Data+Extensions.swift
[33/49] Compiling Starscream Engine.swift
[38/49] Compiling Starscream FoundationHTTPHandler.swift
[41/49] Compiling IBMSwiftSDKCore RestResponse.swift
[42/49] Compiling Starscream FoundationTransport.swift
[43/49] Compiling Starscream TCPTransport.swift
[44/49] Compiling Starscream Security.swift
[45/49] Compiling Starscream Server.swift
[46/49] Compiling Starscream StringHTTPHandler.swift
[47/49] Compiling Starscream FoundationSecurity.swift
[48/49] Compiling Starscream WebSocketServer.swift
[49/49] Compiling Starscream WebSocket.swift
[50/524] Compiling LanguageTranslatorV3 TranslationModel.swift
[51/525] Compiling LanguageTranslatorV3 TranslationModels.swift
[52/525] Compiling LanguageTranslatorV3 TranslationResult.swift
[53/525] Compiling DiscoveryV1 DocumentCounts.swift
[54/525] Compiling DiscoveryV1 Discovery.swift
[55/525] Compiling DiscoveryV1 DiskUsage.swift
[56/525] Compiling DiscoveryV1 DocumentAccepted.swift
[57/525] Compiling DiscoveryV1 DeleteDocumentResponse.swift
[58/525] Compiling DiscoveryV1 DeleteEnvironmentResponse.swift
[59/525] Compiling DiscoveryV1 CredentialsList.swift
[60/525] Compiling DiscoveryV1 DeleteCollectionResponse.swift
[61/525] Compiling DiscoveryV1 DeleteConfigurationResponse.swift
[62/525] Compiling DiscoveryV1 DeleteCredentials.swift
[63/525] Compiling LanguageTranslatorV3 Shared.swift
[66/525] Compiling DiscoveryV1 CredentialDetails.swift
[67/525] Compiling DiscoveryV1 Credentials.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!)
/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!)
[73/527] Compiling DiscoveryV1 AggregationResult.swift
[74/527] Compiling DiscoveryV1 Collection.swift
[75/527] Compiling DiscoveryV1 CollectionCrawlStatus.swift
[76/527] Compiling DiscoveryV1 CollectionDiskUsage.swift
[77/527] Compiling DiscoveryV1 CollectionUsage.swift
[78/527] Compiling DiscoveryV1 Completions.swift
[79/533] Compiling DiscoveryV2 QueryAggregation.swift
[80/533] Compiling DiscoveryV2 QueryCalculationAggregation.swift
[81/533] Compiling DiscoveryV2 QueryFilterAggregation.swift
[82/533] Compiling DiscoveryV2 QueryGroupByAggregation.swift
[83/533] Compiling DiscoveryV2 QueryGroupByAggregationResult.swift
[84/533] Compiling DiscoveryV2 QueryHistogramAggregation.swift
[85/533] Compiling DiscoveryV2 ModelEvaluationMicroAverage.swift
[86/533] Compiling DiscoveryV2 Notice.swift
[87/533] Compiling DiscoveryV2 PerClassModelEvaluation.swift
[88/533] Compiling DiscoveryV2 ProjectDetails.swift
[89/533] Compiling DiscoveryV2 ProjectListDetails.swift
[90/533] Compiling DiscoveryV2 ProjectListDetailsRelevancyTrainingStatus.swift
[91/533] 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!)
/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
[94/533] Compiling DiscoveryV2 Enrichments.swift
[95/533] Compiling DiscoveryV2 Field.swift
[96/533] Compiling DiscoveryV2 ListCollectionsResponse.swift
[97/533] Compiling DiscoveryV2 ListFieldsResponse.swift
[98/533] Compiling DiscoveryV2 ListProjectsResponse.swift
[99/533] Compiling DiscoveryV2 ModelEvaluationMacroAverage.swift
[100/533] Compiling TextToSpeechV1 TextToSpeechDecoder.swift
[101/533] Compiling TextToSpeechV1 WAVRepair.swift
[102/533] Compiling DiscoveryV1 Enrichment.swift
[103/533] Compiling DiscoveryV1 EnrichmentOptions.swift
[104/533] Compiling AssistantV1 DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer.swift
[105/533] Compiling AssistantV1 DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent.swift
[106/533] Compiling AssistantV1 DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe.swift
[112/540] Compiling DiscoveryV1 InsecureConnection.swift
[113/540] Compiling DiscoveryV2 QueryHistogramAggregationResult.swift
[114/540] Compiling DiscoveryV2 QueryLargePassages.swift
[115/540] Compiling DiscoveryV2 QueryLargeSuggestedRefinements.swift
[116/540] Compiling DiscoveryV2 QueryLargeTableResults.swift
[117/540] Compiling DiscoveryV2 QueryNestedAggregation.swift
[118/540] Compiling DiscoveryV2 QueryNoticesResponse.swift
[131/540] Compiling DiscoveryV1 Configuration.swift
[132/540] Compiling DiscoveryV1 Conversions.swift
[136/540] Compiling DiscoveryV2 DocumentClassifiers.swift
[137/540] Compiling DiscoveryV2 Enrichment.swift
[138/540] Compiling DiscoveryV2 EnrichmentOptions.swift
[151/540] Compiling NaturalLanguageUnderstandingV1 TargetedEmotionResults.swift
[152/540] Compiling NaturalLanguageUnderstandingV1 TargetedSentimentResults.swift
[153/540] Compiling NaturalLanguageUnderstandingV1 TokenResult.swift
[154/540] Compiling NaturalLanguageUnderstandingV1 NaturalLanguageUnderstanding.swift
[155/540] Compiling NaturalLanguageUnderstandingV1 Shared.swift
[156/540] Compiling DiscoveryV2 QueryTableResult.swift
[157/540] Compiling DiscoveryV2 QueryTermAggregation.swift
[174/549] 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!)
/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/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: '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
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
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
BUILD FAILURE 6.0 macosSpm