Build Information
Failed to build morsel, reference master (975cdf
), with Swift 6.0 for Linux on 31 Oct 2024 17:44:29 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/krad/morsel.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/krad/morsel
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 975cdf9 Updating the docs a bit
Cloned https://github.com/krad/morsel.git
Revision (git rev-parse @):
975cdf97b5733faeb951d53d6d90c98578336031
SUCCESS checkout https://github.com/krad/morsel.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/krad/morsel.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/krad/grip.git
[1/176] Fetching grip
Fetched https://github.com/krad/grip.git from cache (0.21s)
Computing version for https://github.com/krad/grip.git
Computed https://github.com/krad/grip.git at 1.3.5 (0.49s)
Creating working copy for https://github.com/krad/grip.git
Working copy of https://github.com/krad/grip.git resolved at 1.3.5
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/16] Compiling grip Packets.swift
[5/16] Compiling grip StreamTypePacket.swift
[6/17] Compiling grip VideoDimensionsPacket.swift
[7/17] Compiling grip VideoParamSetPacket.swift
[8/17] Compiling grip VideoSamplePacket.swift
[9/17] Compiling grip StreamType.swift
[10/17] Compiling grip NALU.swift
[11/17] Compiling grip AudioSamplePacket.swift
[12/17] Emitting module grip
[13/17] Compiling grip CompressedSample.swift
[14/17] Compiling grip ByteHelpers.swift
[15/17] Compiling grip BinaryEncodable.swift
[16/17] Compiling grip BinaryEncodableExtensions.swift
[17/17] Compiling grip Writeable.swift
[19/67] Compiling morsel Codecs.swift
/host/spi-builder-workspace/Sources/morsel/Codecs.swift:78:37: warning: 'characters' is deprecated: Please use String directly
76 | var pairs: [String] {
77 | var result: [String] = []
78 | let characters = Array(self.characters)
| `- warning: 'characters' is deprecated: Please use String directly
79 | stride(from: 0, to: characters.count, by: 2).forEach {
80 | result.append(String(characters[$0..<min($0+2, characters.count)]))
/host/spi-builder-workspace/Sources/morsel/Extensions/NSDateComponents+ISO8601.swift:159:40: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
157 | let timeUnits: [NSCalendar.Unit] = [.hour, .minute, .second]
158 |
159 | let periodValues = periodUnits.flatMap(strForUnit)
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
160 | let timeValues = timeUnits.flatMap(strForUnit)
161 |
/host/spi-builder-workspace/Sources/morsel/Extensions/NSDateComponents+ISO8601.swift:160:38: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
158 |
159 | let periodValues = periodUnits.flatMap(strForUnit)
160 | let timeValues = timeUnits.flatMap(strForUnit)
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
161 |
162 | return ["P", periodValues.joined(), "T", timeValues.joined()].joined()
/host/spi-builder-workspace/Sources/morsel/FragmentedMP4Segment.swift:24:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
22 |
23 | if !FileManager.default.fileExists(atPath: file.path) {
24 | FileManager.default.createFile(atPath: file.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
25 | }
26 |
/host/spi-builder-workspace/Sources/morsel/FragmentedMP4Writer.swift:74:17: error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
72 | if !pathExists { throw FragmentedMP4WriterError.directoryDoesNotExist }
73 | #if os(Linux)
74 | if !isDir { throw FragmentedMP4WriterError.fileNotDirectory }
| `- error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
75 | #else
76 | if !isDir.boolValue { throw FragmentedMP4WriterError.fileNotDirectory }
[20/67] Compiling morsel NSDateComponents+ISO8601.swift
/host/spi-builder-workspace/Sources/morsel/Codecs.swift:78:37: warning: 'characters' is deprecated: Please use String directly
76 | var pairs: [String] {
77 | var result: [String] = []
78 | let characters = Array(self.characters)
| `- warning: 'characters' is deprecated: Please use String directly
79 | stride(from: 0, to: characters.count, by: 2).forEach {
80 | result.append(String(characters[$0..<min($0+2, characters.count)]))
/host/spi-builder-workspace/Sources/morsel/Extensions/NSDateComponents+ISO8601.swift:159:40: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
157 | let timeUnits: [NSCalendar.Unit] = [.hour, .minute, .second]
158 |
159 | let periodValues = periodUnits.flatMap(strForUnit)
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
160 | let timeValues = timeUnits.flatMap(strForUnit)
161 |
/host/spi-builder-workspace/Sources/morsel/Extensions/NSDateComponents+ISO8601.swift:160:38: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
158 |
159 | let periodValues = periodUnits.flatMap(strForUnit)
160 | let timeValues = timeUnits.flatMap(strForUnit)
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
161 |
162 | return ["P", periodValues.joined(), "T", timeValues.joined()].joined()
/host/spi-builder-workspace/Sources/morsel/FragmentedMP4Segment.swift:24:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
22 |
23 | if !FileManager.default.fileExists(atPath: file.path) {
24 | FileManager.default.createFile(atPath: file.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
25 | }
26 |
/host/spi-builder-workspace/Sources/morsel/FragmentedMP4Writer.swift:74:17: error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
72 | if !pathExists { throw FragmentedMP4WriterError.directoryDoesNotExist }
73 | #if os(Linux)
74 | if !isDir { throw FragmentedMP4WriterError.fileNotDirectory }
| `- error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
75 | #else
76 | if !isDir.boolValue { throw FragmentedMP4WriterError.fileNotDirectory }
[21/67] Compiling morsel String+Numbers.swift
/host/spi-builder-workspace/Sources/morsel/Codecs.swift:78:37: warning: 'characters' is deprecated: Please use String directly
76 | var pairs: [String] {
77 | var result: [String] = []
78 | let characters = Array(self.characters)
| `- warning: 'characters' is deprecated: Please use String directly
79 | stride(from: 0, to: characters.count, by: 2).forEach {
80 | result.append(String(characters[$0..<min($0+2, characters.count)]))
/host/spi-builder-workspace/Sources/morsel/Extensions/NSDateComponents+ISO8601.swift:159:40: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
157 | let timeUnits: [NSCalendar.Unit] = [.hour, .minute, .second]
158 |
159 | let periodValues = periodUnits.flatMap(strForUnit)
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
160 | let timeValues = timeUnits.flatMap(strForUnit)
161 |
/host/spi-builder-workspace/Sources/morsel/Extensions/NSDateComponents+ISO8601.swift:160:38: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
158 |
159 | let periodValues = periodUnits.flatMap(strForUnit)
160 | let timeValues = timeUnits.flatMap(strForUnit)
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
161 |
162 | return ["P", periodValues.joined(), "T", timeValues.joined()].joined()
/host/spi-builder-workspace/Sources/morsel/FragmentedMP4Segment.swift:24:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
22 |
23 | if !FileManager.default.fileExists(atPath: file.path) {
24 | FileManager.default.createFile(atPath: file.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
25 | }
26 |
/host/spi-builder-workspace/Sources/morsel/FragmentedMP4Writer.swift:74:17: error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
72 | if !pathExists { throw FragmentedMP4WriterError.directoryDoesNotExist }
73 | #if os(Linux)
74 | if !isDir { throw FragmentedMP4WriterError.fileNotDirectory }
| `- error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
75 | #else
76 | if !isDir.boolValue { throw FragmentedMP4WriterError.fileNotDirectory }
[22/67] Compiling morsel FileWriterDelegate.swift
/host/spi-builder-workspace/Sources/morsel/Codecs.swift:78:37: warning: 'characters' is deprecated: Please use String directly
76 | var pairs: [String] {
77 | var result: [String] = []
78 | let characters = Array(self.characters)
| `- warning: 'characters' is deprecated: Please use String directly
79 | stride(from: 0, to: characters.count, by: 2).forEach {
80 | result.append(String(characters[$0..<min($0+2, characters.count)]))
/host/spi-builder-workspace/Sources/morsel/Extensions/NSDateComponents+ISO8601.swift:159:40: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
157 | let timeUnits: [NSCalendar.Unit] = [.hour, .minute, .second]
158 |
159 | let periodValues = periodUnits.flatMap(strForUnit)
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
160 | let timeValues = timeUnits.flatMap(strForUnit)
161 |
/host/spi-builder-workspace/Sources/morsel/Extensions/NSDateComponents+ISO8601.swift:160:38: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
158 |
159 | let periodValues = periodUnits.flatMap(strForUnit)
160 | let timeValues = timeUnits.flatMap(strForUnit)
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
161 |
162 | return ["P", periodValues.joined(), "T", timeValues.joined()].joined()
/host/spi-builder-workspace/Sources/morsel/FragmentedMP4Segment.swift:24:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
22 |
23 | if !FileManager.default.fileExists(atPath: file.path) {
24 | FileManager.default.createFile(atPath: file.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
25 | }
26 |
/host/spi-builder-workspace/Sources/morsel/FragmentedMP4Writer.swift:74:17: error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
72 | if !pathExists { throw FragmentedMP4WriterError.directoryDoesNotExist }
73 | #if os(Linux)
74 | if !isDir { throw FragmentedMP4WriterError.fileNotDirectory }
| `- error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
75 | #else
76 | if !isDir.boolValue { throw FragmentedMP4WriterError.fileNotDirectory }
[23/67] Compiling morsel FragmentedMP4InitSegment.swift
/host/spi-builder-workspace/Sources/morsel/Codecs.swift:78:37: warning: 'characters' is deprecated: Please use String directly
76 | var pairs: [String] {
77 | var result: [String] = []
78 | let characters = Array(self.characters)
| `- warning: 'characters' is deprecated: Please use String directly
79 | stride(from: 0, to: characters.count, by: 2).forEach {
80 | result.append(String(characters[$0..<min($0+2, characters.count)]))
/host/spi-builder-workspace/Sources/morsel/Extensions/NSDateComponents+ISO8601.swift:159:40: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
157 | let timeUnits: [NSCalendar.Unit] = [.hour, .minute, .second]
158 |
159 | let periodValues = periodUnits.flatMap(strForUnit)
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
160 | let timeValues = timeUnits.flatMap(strForUnit)
161 |
/host/spi-builder-workspace/Sources/morsel/Extensions/NSDateComponents+ISO8601.swift:160:38: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
158 |
159 | let periodValues = periodUnits.flatMap(strForUnit)
160 | let timeValues = timeUnits.flatMap(strForUnit)
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
161 |
162 | return ["P", periodValues.joined(), "T", timeValues.joined()].joined()
/host/spi-builder-workspace/Sources/morsel/FragmentedMP4Segment.swift:24:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
22 |
23 | if !FileManager.default.fileExists(atPath: file.path) {
24 | FileManager.default.createFile(atPath: file.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
25 | }
26 |
/host/spi-builder-workspace/Sources/morsel/FragmentedMP4Writer.swift:74:17: error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
72 | if !pathExists { throw FragmentedMP4WriterError.directoryDoesNotExist }
73 | #if os(Linux)
74 | if !isDir { throw FragmentedMP4WriterError.fileNotDirectory }
| `- error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
75 | #else
76 | if !isDir.boolValue { throw FragmentedMP4WriterError.fileNotDirectory }
[24/67] Compiling morsel FragmentedMP4Segment.swift
/host/spi-builder-workspace/Sources/morsel/Codecs.swift:78:37: warning: 'characters' is deprecated: Please use String directly
76 | var pairs: [String] {
77 | var result: [String] = []
78 | let characters = Array(self.characters)
| `- warning: 'characters' is deprecated: Please use String directly
79 | stride(from: 0, to: characters.count, by: 2).forEach {
80 | result.append(String(characters[$0..<min($0+2, characters.count)]))
/host/spi-builder-workspace/Sources/morsel/Extensions/NSDateComponents+ISO8601.swift:159:40: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
157 | let timeUnits: [NSCalendar.Unit] = [.hour, .minute, .second]
158 |
159 | let periodValues = periodUnits.flatMap(strForUnit)
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
160 | let timeValues = timeUnits.flatMap(strForUnit)
161 |
/host/spi-builder-workspace/Sources/morsel/Extensions/NSDateComponents+ISO8601.swift:160:38: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
158 |
159 | let periodValues = periodUnits.flatMap(strForUnit)
160 | let timeValues = timeUnits.flatMap(strForUnit)
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
161 |
162 | return ["P", periodValues.joined(), "T", timeValues.joined()].joined()
/host/spi-builder-workspace/Sources/morsel/FragmentedMP4Segment.swift:24:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
22 |
23 | if !FileManager.default.fileExists(atPath: file.path) {
24 | FileManager.default.createFile(atPath: file.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
25 | }
26 |
/host/spi-builder-workspace/Sources/morsel/FragmentedMP4Writer.swift:74:17: error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
72 | if !pathExists { throw FragmentedMP4WriterError.directoryDoesNotExist }
73 | #if os(Linux)
74 | if !isDir { throw FragmentedMP4WriterError.fileNotDirectory }
| `- error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
75 | #else
76 | if !isDir.boolValue { throw FragmentedMP4WriterError.fileNotDirectory }
[25/67] Compiling morsel FragmentedMP4Writer.swift
/host/spi-builder-workspace/Sources/morsel/Codecs.swift:78:37: warning: 'characters' is deprecated: Please use String directly
76 | var pairs: [String] {
77 | var result: [String] = []
78 | let characters = Array(self.characters)
| `- warning: 'characters' is deprecated: Please use String directly
79 | stride(from: 0, to: characters.count, by: 2).forEach {
80 | result.append(String(characters[$0..<min($0+2, characters.count)]))
/host/spi-builder-workspace/Sources/morsel/Extensions/NSDateComponents+ISO8601.swift:159:40: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
157 | let timeUnits: [NSCalendar.Unit] = [.hour, .minute, .second]
158 |
159 | let periodValues = periodUnits.flatMap(strForUnit)
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
160 | let timeValues = timeUnits.flatMap(strForUnit)
161 |
/host/spi-builder-workspace/Sources/morsel/Extensions/NSDateComponents+ISO8601.swift:160:38: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
158 |
159 | let periodValues = periodUnits.flatMap(strForUnit)
160 | let timeValues = timeUnits.flatMap(strForUnit)
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
161 |
162 | return ["P", periodValues.joined(), "T", timeValues.joined()].joined()
/host/spi-builder-workspace/Sources/morsel/FragmentedMP4Segment.swift:24:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
22 |
23 | if !FileManager.default.fileExists(atPath: file.path) {
24 | FileManager.default.createFile(atPath: file.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
25 | }
26 |
/host/spi-builder-workspace/Sources/morsel/FragmentedMP4Writer.swift:74:17: error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
72 | if !pathExists { throw FragmentedMP4WriterError.directoryDoesNotExist }
73 | #if os(Linux)
74 | if !isDir { throw FragmentedMP4WriterError.fileNotDirectory }
| `- error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
75 | #else
76 | if !isDir.boolValue { throw FragmentedMP4WriterError.fileNotDirectory }
[26/67] Compiling morsel MOOVConfig.swift
/host/spi-builder-workspace/Sources/morsel/Playlists/PlaylistWriter.swift:33:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
31 |
32 | if !FileManager.default.fileExists(atPath: self.playlistURL.path) {
33 | FileManager.default.createFile(atPath: self.playlistURL.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
34 | }
35 |
[27/67] Compiling morsel HLSEventPlaylist.swift
/host/spi-builder-workspace/Sources/morsel/Playlists/PlaylistWriter.swift:33:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
31 |
32 | if !FileManager.default.fileExists(atPath: self.playlistURL.path) {
33 | FileManager.default.createFile(atPath: self.playlistURL.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
34 | }
35 |
[28/67] Compiling morsel HLSLivePlaylist.swift
/host/spi-builder-workspace/Sources/morsel/Playlists/PlaylistWriter.swift:33:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
31 |
32 | if !FileManager.default.fileExists(atPath: self.playlistURL.path) {
33 | FileManager.default.createFile(atPath: self.playlistURL.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
34 | }
35 |
[29/67] Compiling morsel HLSVODPlaylist.swift
/host/spi-builder-workspace/Sources/morsel/Playlists/PlaylistWriter.swift:33:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
31 |
32 | if !FileManager.default.fileExists(atPath: self.playlistURL.path) {
33 | FileManager.default.createFile(atPath: self.playlistURL.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
34 | }
35 |
[30/67] Compiling morsel Playlist.swift
/host/spi-builder-workspace/Sources/morsel/Playlists/PlaylistWriter.swift:33:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
31 |
32 | if !FileManager.default.fileExists(atPath: self.playlistURL.path) {
33 | FileManager.default.createFile(atPath: self.playlistURL.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
34 | }
35 |
[31/67] Compiling morsel PlaylistWriter.swift
/host/spi-builder-workspace/Sources/morsel/Playlists/PlaylistWriter.swift:33:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
31 |
32 | if !FileManager.default.fileExists(atPath: self.playlistURL.path) {
33 | FileManager.default.createFile(atPath: self.playlistURL.path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
34 | }
35 |
[32/73] Compiling morsel MOOF.swift
[33/73] Compiling morsel MOOV.swift
[34/73] Compiling morsel MP4A.swift
[35/73] Compiling morsel MVEX.swift
[36/73] Compiling morsel MVHD.swift
[37/73] Compiling morsel PASP.swift
[38/73] Compiling morsel SMHD.swift
[39/73] Emitting module morsel
[40/73] Compiling morsel AVC1.swift
[41/73] Compiling morsel AVCC.swift
[42/73] Compiling morsel COLR.swift
[43/73] Compiling morsel DINF.swift
[44/73] Compiling morsel DREF.swift
[45/73] Compiling morsel ESDS.swift
[46/73] Compiling morsel FTYP.swift
[47/73] Compiling morsel General.swift
[48/73] Compiling morsel HDLR.swift
[49/73] Compiling morsel MDAT.swift
[50/73] Compiling morsel MDHD.swift
[51/73] Compiling morsel MDIA.swift
[52/73] Compiling morsel MFHD.swift
[53/73] Compiling morsel MINF.swift
[54/73] Compiling morsel STBL.swift
[55/73] Compiling morsel STCO.swift
[56/73] Compiling morsel STSC.swift
[57/73] Compiling morsel STSD.swift
[58/73] Compiling morsel STSZ.swift
[59/73] Compiling morsel STTS.swift
[60/73] Compiling morsel TFDT.swift
[61/73] Compiling morsel TFHD.swift
[62/73] Compiling morsel TKHD.swift
[63/73] Compiling morsel TRAF.swift
[64/73] Compiling morsel TRAK.swift
[65/73] Compiling morsel TREX.swift
[66/73] Compiling morsel TRUN.swift
[67/73] Compiling morsel VMHD.swift
[68/73] Compiling morsel Representation.swift
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:19:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
17 |
18 | internal func append(_ newElement: T) {
19 | q.async(flags: .barrier) { self.array.append(newElement) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:19:54: warning: capture of 'newElement' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
17 |
18 | internal func append(_ newElement: T) {
19 | q.async(flags: .barrier) { self.array.append(newElement) }
| `- warning: capture of 'newElement' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:23:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
21 |
22 | internal func remove(at index: Int) {
23 | q.async(flags: .barrier) { self.array.remove(at: index) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:27:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
25 |
26 | internal func removeFirst(n: Int) {
27 | q.async(flags: .barrier) { self.array.removeFirst(n) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }
29 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:56:40: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
54 | internal subscript(index: Int) -> T {
55 | set {
56 | q.async(flags: .barrier) { self.array[index] = newValue }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | }
58 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:56:60: warning: capture of 'newValue' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
54 | internal subscript(index: Int) -> T {
55 | set {
56 | q.async(flags: .barrier) { self.array[index] = newValue }
| `- warning: capture of 'newValue' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | }
58 |
[69/73] Compiling morsel Sample.swift
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:19:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
17 |
18 | internal func append(_ newElement: T) {
19 | q.async(flags: .barrier) { self.array.append(newElement) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:19:54: warning: capture of 'newElement' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
17 |
18 | internal func append(_ newElement: T) {
19 | q.async(flags: .barrier) { self.array.append(newElement) }
| `- warning: capture of 'newElement' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:23:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
21 |
22 | internal func remove(at index: Int) {
23 | q.async(flags: .barrier) { self.array.remove(at: index) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:27:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
25 |
26 | internal func removeFirst(n: Int) {
27 | q.async(flags: .barrier) { self.array.removeFirst(n) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }
29 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:56:40: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
54 | internal subscript(index: Int) -> T {
55 | set {
56 | q.async(flags: .barrier) { self.array[index] = newValue }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | }
58 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:56:60: warning: capture of 'newValue' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
54 | internal subscript(index: Int) -> T {
55 | set {
56 | q.async(flags: .barrier) { self.array[index] = newValue }
| `- warning: capture of 'newValue' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | }
58 |
[70/73] Compiling morsel Segment.swift
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:19:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
17 |
18 | internal func append(_ newElement: T) {
19 | q.async(flags: .barrier) { self.array.append(newElement) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:19:54: warning: capture of 'newElement' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
17 |
18 | internal func append(_ newElement: T) {
19 | q.async(flags: .barrier) { self.array.append(newElement) }
| `- warning: capture of 'newElement' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:23:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
21 |
22 | internal func remove(at index: Int) {
23 | q.async(flags: .barrier) { self.array.remove(at: index) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:27:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
25 |
26 | internal func removeFirst(n: Int) {
27 | q.async(flags: .barrier) { self.array.removeFirst(n) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }
29 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:56:40: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
54 | internal subscript(index: Int) -> T {
55 | set {
56 | q.async(flags: .barrier) { self.array[index] = newValue }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | }
58 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:56:60: warning: capture of 'newValue' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
54 | internal subscript(index: Int) -> T {
55 | set {
56 | q.async(flags: .barrier) { self.array[index] = newValue }
| `- warning: capture of 'newValue' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | }
58 |
[71/73] Compiling morsel StreamSegmenter.swift
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:19:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
17 |
18 | internal func append(_ newElement: T) {
19 | q.async(flags: .barrier) { self.array.append(newElement) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:19:54: warning: capture of 'newElement' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
17 |
18 | internal func append(_ newElement: T) {
19 | q.async(flags: .barrier) { self.array.append(newElement) }
| `- warning: capture of 'newElement' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:23:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
21 |
22 | internal func remove(at index: Int) {
23 | q.async(flags: .barrier) { self.array.remove(at: index) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:27:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
25 |
26 | internal func removeFirst(n: Int) {
27 | q.async(flags: .barrier) { self.array.removeFirst(n) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }
29 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:56:40: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
54 | internal subscript(index: Int) -> T {
55 | set {
56 | q.async(flags: .barrier) { self.array[index] = newValue }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | }
58 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:56:60: warning: capture of 'newValue' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
54 | internal subscript(index: Int) -> T {
55 | set {
56 | q.async(flags: .barrier) { self.array[index] = newValue }
| `- warning: capture of 'newValue' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | }
58 |
[72/73] Compiling morsel StreamState.swift
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:19:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
17 |
18 | internal func append(_ newElement: T) {
19 | q.async(flags: .barrier) { self.array.append(newElement) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:19:54: warning: capture of 'newElement' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
17 |
18 | internal func append(_ newElement: T) {
19 | q.async(flags: .barrier) { self.array.append(newElement) }
| `- warning: capture of 'newElement' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:23:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
21 |
22 | internal func remove(at index: Int) {
23 | q.async(flags: .barrier) { self.array.remove(at: index) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:27:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
25 |
26 | internal func removeFirst(n: Int) {
27 | q.async(flags: .barrier) { self.array.removeFirst(n) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }
29 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:56:40: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
54 | internal subscript(index: Int) -> T {
55 | set {
56 | q.async(flags: .barrier) { self.array[index] = newValue }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | }
58 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:56:60: warning: capture of 'newValue' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
54 | internal subscript(index: Int) -> T {
55 | set {
56 | q.async(flags: .barrier) { self.array[index] = newValue }
| `- warning: capture of 'newValue' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | }
58 |
[73/73] Compiling morsel ThreadSafeArray.swift
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:19:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
17 |
18 | internal func append(_ newElement: T) {
19 | q.async(flags: .barrier) { self.array.append(newElement) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:19:54: warning: capture of 'newElement' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
17 |
18 | internal func append(_ newElement: T) {
19 | q.async(flags: .barrier) { self.array.append(newElement) }
| `- warning: capture of 'newElement' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:23:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
21 |
22 | internal func remove(at index: Int) {
23 | q.async(flags: .barrier) { self.array.remove(at: index) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:27:36: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
25 |
26 | internal func removeFirst(n: Int) {
27 | q.async(flags: .barrier) { self.array.removeFirst(n) }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }
29 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:56:40: warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: generic class 'ThreadSafeArray' does not conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
54 | internal subscript(index: Int) -> T {
55 | set {
56 | q.async(flags: .barrier) { self.array[index] = newValue }
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeArray<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | }
58 |
/host/spi-builder-workspace/Sources/morsel/ThreadSafeArray.swift:56:60: warning: capture of 'newValue' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 | import Dispatch
3 |
4 | internal class ThreadSafeArray<T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 |
6 | var startIndex: Int = 0
:
54 | internal subscript(index: Int) -> T {
55 | set {
56 | q.async(flags: .barrier) { self.array[index] = newValue }
| `- warning: capture of 'newValue' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | }
58 |
BUILD FAILURE 6.0 linux