Build Information
Failed to build WatsonDeveloperCloud, reference v5.0.0 (8359f8
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 07:26:09 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: 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/daltoniam/Starscream
Fetching https://github.com/IBM/swift-sdk-core
[1/988] Fetching swift-sdk-core
[169/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 (2.82s)
Computing version for https://github.com/daltoniam/Starscream
Computed https://github.com/daltoniam/Starscream at 4.0.8 (0.72s)
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 (10.25s)
Fetching https://github.com/daltoniam/Starscream from cache
Fetching https://github.com/IBM/swift-sdk-core from cache
Fetched https://github.com/IBM/swift-sdk-core from cache (0.53s)
Fetched https://github.com/daltoniam/Starscream from cache (0.53s)
Computing version for https://github.com/IBM/swift-sdk-core
Computed https://github.com/IBM/swift-sdk-core at 1.2.1 (0.02s)
Computing version for https://github.com/daltoniam/Starscream
Computed https://github.com/daltoniam/Starscream at 4.0.8 (0.02s)
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.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
[8/13] Copying PrivacyInfo.xcprivacy
[8/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 Starscream Transport.swift
[16/48] Compiling Starscream resource_bundle_accessor.swift
[17/48] Compiling IBMSwiftSDKCore RestError.swift
[18/48] Compiling IBMSwiftSDKCore RestRequest.swift
[19/49] Compiling IBMSwiftSDKCore MultipartFormData.swift
[20/49] Compiling IBMSwiftSDKCore JSON.swift
[21/49] Compiling IBMSwiftSDKCore CodableExtensions.swift
[22/49] Compiling IBMSwiftSDKCore CredentialUtils.swift
[23/49] Compiling Starscream Framer.swift
[24/49] Compiling Starscream HTTPHandler.swift
[25/49] Compiling Starscream StringHTTPHandler.swift
[26/49] Compiling Starscream FoundationSecurity.swift
[27/49] Compiling Starscream FoundationHTTPServerHandler.swift
[28/49] Compiling Starscream FrameCollector.swift
[29/49] Compiling Starscream Compression.swift
[30/49] Compiling Starscream WSCompression.swift
[31/49] Emitting module IBMSwiftSDKCore
[32/49] Compiling Starscream Data+Extensions.swift
[33/49] Compiling Starscream Engine.swift
[34/49] Compiling Starscream NativeEngine.swift
[35/49] Compiling Starscream WSEngine.swift
[42/49] Compiling Starscream FoundationHTTPHandler.swift
[43/49] Compiling Starscream FoundationTransport.swift
[44/49] Compiling Starscream TCPTransport.swift
[45/49] Compiling Starscream Security.swift
[46/49] Compiling Starscream Server.swift
[47/49] Compiling Starscream WebSocketServer.swift
[48/49] Compiling Starscream WebSocket.swift
[49/49] Compiling IBMSwiftSDKCore RestResponse.swift
[50/524] Compiling DiscoveryV1 CredentialsList.swift
[51/524] Compiling DiscoveryV1 DeleteCollectionResponse.swift
[52/526] Compiling LanguageTranslatorV3 TranslationModels.swift
[53/526] Compiling LanguageTranslatorV3 TranslationResult.swift
[54/527] Compiling DiscoveryV1 DeleteConfigurationResponse.swift
[55/527] Compiling DiscoveryV1 DeleteCredentials.swift
[56/527] Compiling DiscoveryV1 DeleteDocumentResponse.swift
[57/527] Compiling DiscoveryV1 DeleteEnvironmentResponse.swift
[58/527] Compiling AssistantV1 ChannelTransferTargetChat.swift
[59/527] Compiling DiscoveryV1 CreateEventResponse.swift
[60/527] Compiling DiscoveryV1 CredentialDetails.swift
[61/527] Compiling DiscoveryV1 Credentials.swift
[62/527] Compiling DiscoveryV2 ComponentSettingsFieldsShownTitle.swift
[63/527] Compiling DiscoveryV2 ComponentSettingsResponse.swift
[64/527] Compiling DiscoveryV2 CreateDocumentClassifier.swift
[65/527] Compiling AssistantV1 CaptureGroup.swift
[66/527] Compiling AssistantV1 ChannelTransferInfo.swift
[67/527] Compiling AssistantV1 ChannelTransferTarget.swift
[68/527] Compiling LanguageTranslatorV3 TranslationModel.swift
[75/527] Compiling DiscoveryV2 ComponentSettingsAggregation.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!)
[76/527] Compiling DiscoveryV2 ComponentSettingsFieldsShown.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!)
[77/527] Compiling DiscoveryV2 ComponentSettingsFieldsShownBody.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!)
[78/527] Compiling LanguageTranslatorV3 Shared.swift
[92/540] Compiling NaturalLanguageUnderstandingV1 RelationEntity.swift
[93/540] Compiling NaturalLanguageUnderstandingV1 RelationsOptions.swift
[94/540] Compiling NaturalLanguageUnderstandingV1 RelationsResult.swift
[95/540] Compiling NaturalLanguageUnderstandingV1 SemanticRolesEntity.swift
[96/540] Compiling DiscoveryV1 NluEnrichmentEmotion.swift
[97/540] Compiling DiscoveryV1 NluEnrichmentEntities.swift
[100/540] 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
[105/540] Compiling NaturalLanguageUnderstandingV1 KeywordsResult.swift
[106/540] Compiling NaturalLanguageUnderstandingV1 ListModelsResults.swift
[107/540] Compiling NaturalLanguageUnderstandingV1 ListSentimentModelsResponse.swift
[108/540] Compiling NaturalLanguageUnderstandingV1 Model.swift
[109/540] Compiling NaturalLanguageUnderstandingV1 Notice.swift
[110/540] Compiling NaturalLanguageUnderstandingV1 RelationArgument.swift
[117/540] Compiling DiscoveryV1 Environment.swift
[118/540] Compiling DiscoveryV1 EnvironmentDocuments.swift
[119/540] Compiling DiscoveryV1 EventData.swift
[120/540] Compiling DiscoveryV1 Expansion.swift
[121/540] Compiling DiscoveryV1 Expansions.swift
[122/540] Compiling NaturalLanguageUnderstandingV1 KeywordsOptions.swift
[123/540] Compiling TextToSpeechV1 TextToSpeechDecoder.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 | }
[124/540] Compiling TextToSpeechV1 WAVRepair.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 | }
[125/540] Compiling DiscoveryV1 DiskUsage.swift
[126/540] Compiling DiscoveryV1 DocumentAccepted.swift
[129/540] Compiling DiscoveryV1 Enrichment.swift
[130/540] Compiling DiscoveryV1 EnrichmentOptions.swift
[131/540] Compiling DiscoveryV1 NluEnrichmentFeatures.swift
[132/540] Compiling DiscoveryV1 GatewayDelete.swift
[133/540] Compiling DiscoveryV1 GatewayList.swift
[134/540] Compiling DiscoveryV1 HTMLSettings.swift
[135/540] Compiling DiscoveryV1 IndexCapacity.swift
[136/540] Compiling DiscoveryV1 ListCollectionFieldsResponse.swift
[137/540] Compiling DiscoveryV1 ListCollectionsResponse.swift
[138/540] Compiling DiscoveryV1 ListConfigurationsResponse.swift
[139/540] Compiling DiscoveryV1 ListEnvironmentsResponse.swift
[140/540] Compiling DiscoveryV1 LogQueryResponse.swift
[141/540] Compiling DiscoveryV1 LogQueryResponseResult.swift
[142/540] Compiling DiscoveryV1 LogQueryResponseResultDocuments.swift
[143/540] 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!)
[158/540] Compiling NaturalLanguageUnderstandingV1 TargetedEmotionResults.swift
[159/540] Compiling NaturalLanguageUnderstandingV1 TargetedSentimentResults.swift
[160/540] Compiling NaturalLanguageUnderstandingV1 TokenResult.swift
[161/540] Compiling NaturalLanguageUnderstandingV1 NaturalLanguageUnderstanding.swift
[162/540] Compiling NaturalLanguageUnderstandingV1 Shared.swift
[163/540] Compiling AssistantV1 Pagination.swift
[164/540] Compiling AssistantV1 ResponseGenericChannel.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
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