The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build morsel, reference 1.1.9 (82b9d9), 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-0":/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: 1.1.9
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
 * tag               1.1.9      -> FETCH_HEAD
HEAD is now at 82b9d97 Bumping grip dependency for swift 4.1 compatibility
Cloned https://github.com/krad/morsel.git
Revision (git rev-parse @):
82b9d970613c00a964ca6cacce3a3e1e97bcdc08
SUCCESS checkout https://github.com/krad/morsel.git at 1.1.9
========================================
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-0":/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.17s)
Computing version for https://github.com/krad/grip.git
Computed https://github.com/krad/grip.git at 1.3.5 (0.51s)
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 StreamType.swift
[7/17] Compiling grip VideoDimensionsPacket.swift
[8/17] Compiling grip VideoParamSetPacket.swift
[9/17] Compiling grip VideoSamplePacket.swift
[10/17] Compiling grip Writeable.swift
[11/17] Compiling grip CompressedSample.swift
[12/17] Compiling grip ByteHelpers.swift
[13/17] Emitting module grip
[14/17] Compiling grip BinaryEncodable.swift
[15/17] Compiling grip BinaryEncodableExtensions.swift
[16/17] Compiling grip NALU.swift
[17/17] Compiling grip AudioSamplePacket.swift
[19/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 |
[20/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 |
[21/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 |
[22/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 |
[23/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 |
[24/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 |
[25/67] Compiling morsel Codecs.swift
/host/spi-builder-workspace/Sources/morsel/Codecs.swift:77:37: warning: 'characters' is deprecated: Please use String directly
75 |     var pairs: [String] {
76 |         var result: [String] = []
77 |         let characters = Array(self.characters)
   |                                     `- warning: 'characters' is deprecated: Please use String directly
78 |         stride(from: 0, to: characters.count, by: 2).forEach {
79 |             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:48:17: error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
 46 |         if !pathExists { throw FragmentedMP4WriterError.directoryDoesNotExist }
 47 |         #if os(Linux)
 48 |             if !isDir { throw FragmentedMP4WriterError.fileNotDirectory }
    |                 `- error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
 49 |         #else
 50 |             if !isDir.boolValue { throw FragmentedMP4WriterError.fileNotDirectory }
[26/67] Compiling morsel NSDateComponents+ISO8601.swift
/host/spi-builder-workspace/Sources/morsel/Codecs.swift:77:37: warning: 'characters' is deprecated: Please use String directly
75 |     var pairs: [String] {
76 |         var result: [String] = []
77 |         let characters = Array(self.characters)
   |                                     `- warning: 'characters' is deprecated: Please use String directly
78 |         stride(from: 0, to: characters.count, by: 2).forEach {
79 |             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:48:17: error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
 46 |         if !pathExists { throw FragmentedMP4WriterError.directoryDoesNotExist }
 47 |         #if os(Linux)
 48 |             if !isDir { throw FragmentedMP4WriterError.fileNotDirectory }
    |                 `- error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
 49 |         #else
 50 |             if !isDir.boolValue { throw FragmentedMP4WriterError.fileNotDirectory }
[27/67] Compiling morsel String+Numbers.swift
/host/spi-builder-workspace/Sources/morsel/Codecs.swift:77:37: warning: 'characters' is deprecated: Please use String directly
75 |     var pairs: [String] {
76 |         var result: [String] = []
77 |         let characters = Array(self.characters)
   |                                     `- warning: 'characters' is deprecated: Please use String directly
78 |         stride(from: 0, to: characters.count, by: 2).forEach {
79 |             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:48:17: error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
 46 |         if !pathExists { throw FragmentedMP4WriterError.directoryDoesNotExist }
 47 |         #if os(Linux)
 48 |             if !isDir { throw FragmentedMP4WriterError.fileNotDirectory }
    |                 `- error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
 49 |         #else
 50 |             if !isDir.boolValue { throw FragmentedMP4WriterError.fileNotDirectory }
[28/67] Compiling morsel FileWriterDelegate.swift
/host/spi-builder-workspace/Sources/morsel/Codecs.swift:77:37: warning: 'characters' is deprecated: Please use String directly
75 |     var pairs: [String] {
76 |         var result: [String] = []
77 |         let characters = Array(self.characters)
   |                                     `- warning: 'characters' is deprecated: Please use String directly
78 |         stride(from: 0, to: characters.count, by: 2).forEach {
79 |             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:48:17: error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
 46 |         if !pathExists { throw FragmentedMP4WriterError.directoryDoesNotExist }
 47 |         #if os(Linux)
 48 |             if !isDir { throw FragmentedMP4WriterError.fileNotDirectory }
    |                 `- error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
 49 |         #else
 50 |             if !isDir.boolValue { throw FragmentedMP4WriterError.fileNotDirectory }
[29/67] Compiling morsel FragmentedMP4InitSegment.swift
/host/spi-builder-workspace/Sources/morsel/Codecs.swift:77:37: warning: 'characters' is deprecated: Please use String directly
75 |     var pairs: [String] {
76 |         var result: [String] = []
77 |         let characters = Array(self.characters)
   |                                     `- warning: 'characters' is deprecated: Please use String directly
78 |         stride(from: 0, to: characters.count, by: 2).forEach {
79 |             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:48:17: error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
 46 |         if !pathExists { throw FragmentedMP4WriterError.directoryDoesNotExist }
 47 |         #if os(Linux)
 48 |             if !isDir { throw FragmentedMP4WriterError.fileNotDirectory }
    |                 `- error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
 49 |         #else
 50 |             if !isDir.boolValue { throw FragmentedMP4WriterError.fileNotDirectory }
[30/67] Compiling morsel FragmentedMP4Segment.swift
/host/spi-builder-workspace/Sources/morsel/Codecs.swift:77:37: warning: 'characters' is deprecated: Please use String directly
75 |     var pairs: [String] {
76 |         var result: [String] = []
77 |         let characters = Array(self.characters)
   |                                     `- warning: 'characters' is deprecated: Please use String directly
78 |         stride(from: 0, to: characters.count, by: 2).forEach {
79 |             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:48:17: error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
 46 |         if !pathExists { throw FragmentedMP4WriterError.directoryDoesNotExist }
 47 |         #if os(Linux)
 48 |             if !isDir { throw FragmentedMP4WriterError.fileNotDirectory }
    |                 `- error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
 49 |         #else
 50 |             if !isDir.boolValue { throw FragmentedMP4WriterError.fileNotDirectory }
[31/67] Compiling morsel FragmentedMP4Writer.swift
/host/spi-builder-workspace/Sources/morsel/Codecs.swift:77:37: warning: 'characters' is deprecated: Please use String directly
75 |     var pairs: [String] {
76 |         var result: [String] = []
77 |         let characters = Array(self.characters)
   |                                     `- warning: 'characters' is deprecated: Please use String directly
78 |         stride(from: 0, to: characters.count, by: 2).forEach {
79 |             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:48:17: error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
 46 |         if !pathExists { throw FragmentedMP4WriterError.directoryDoesNotExist }
 47 |         #if os(Linux)
 48 |             if !isDir { throw FragmentedMP4WriterError.fileNotDirectory }
    |                 `- error: cannot convert value of type 'ObjCBool' to expected argument type 'Bool'
 49 |         #else
 50 |             if !isDir.boolValue { throw FragmentedMP4WriterError.fileNotDirectory }
[32/73] Emitting module morsel
[33/73] Compiling morsel MOOF.swift
[34/73] Compiling morsel MOOV.swift
[35/73] Compiling morsel MP4A.swift
[36/73] Compiling morsel MVEX.swift
[37/73] Compiling morsel MVHD.swift
[38/73] Compiling morsel PASP.swift
[39/73] Compiling morsel SMHD.swift
[40/73] Compiling morsel STBL.swift
[41/73] Compiling morsel STCO.swift
[42/73] Compiling morsel STSC.swift
[43/73] Compiling morsel STSD.swift
[44/73] Compiling morsel STSZ.swift
[45/73] Compiling morsel STTS.swift
[46/73] Compiling morsel TFDT.swift
[47/73] Compiling morsel TFHD.swift
[48/73] Compiling morsel TKHD.swift
[49/73] Compiling morsel TRAF.swift
[50/73] Compiling morsel TRAK.swift
[51/73] Compiling morsel TREX.swift
[52/73] Compiling morsel TRUN.swift
[53/73] Compiling morsel VMHD.swift
[54/73] Compiling morsel AVC1.swift
[55/73] Compiling morsel AVCC.swift
[56/73] Compiling morsel COLR.swift
[57/73] Compiling morsel DINF.swift
[58/73] Compiling morsel DREF.swift
[59/73] Compiling morsel ESDS.swift
[60/73] Compiling morsel FTYP.swift
[61/73] Compiling morsel General.swift
[62/73] Compiling morsel HDLR.swift
[63/73] Compiling morsel MDAT.swift
[64/73] Compiling morsel MDHD.swift
[65/73] Compiling morsel MDIA.swift
[66/73] Compiling morsel MFHD.swift
[67/73] Compiling morsel MINF.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