Build Information
Successful build of SwiftFoundationCompression, reference 4.0.0 (0eba1f
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 15:07:08 UTC.
Swift 6 data race errors: 5
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/benspratling4/swiftfoundationcompression.git
Reference: 4.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/benspratling4/swiftfoundationcompression
* tag 4.0.0 -> FETCH_HEAD
HEAD is now at 0eba1f7 Merge pull request #8 from benspratling4/without_czlib
Cloned https://github.com/benspratling4/swiftfoundationcompression.git
Revision (git rev-parse @):
0eba1f70fdbbdda08bfcc6d01ae9e2c3ffe9df2b
SUCCESS checkout https://github.com/benspratling4/swiftfoundationcompression.git at 4.0.0
Fetching https://github.com/benspratling4/SwiftPatterns.git
[1/301] Fetching swiftpatterns
Fetched https://github.com/benspratling4/SwiftPatterns.git from cache (0.73s)
Computing version for https://github.com/benspratling4/SwiftPatterns.git
Computed https://github.com/benspratling4/SwiftPatterns.git at 4.0.0 (1.30s)
Creating working copy for https://github.com/benspratling4/SwiftPatterns.git
Working copy of https://github.com/benspratling4/SwiftPatterns.git resolved at 4.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftfoundationcompression",
"name": "SwiftFoundationCompression",
"url": "https://github.com/benspratling4/swiftfoundationcompression.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftfoundationcompression",
"dependencies": [
{
"identity": "swiftpatterns",
"name": "SwiftPatterns",
"url": "https://github.com/benspratling4/SwiftPatterns.git",
"version": "4.5.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftPatterns",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/benspratling4/swiftfoundationcompression.git
[1/163] Fetching swiftfoundationcompression
Fetched https://github.com/benspratling4/swiftfoundationcompression.git from cache (0.74s)
Fetching https://github.com/benspratling4/SwiftPatterns.git from cache
Fetched https://github.com/benspratling4/SwiftPatterns.git from cache (0.41s)
Computing version for https://github.com/benspratling4/SwiftPatterns.git
Computed https://github.com/benspratling4/SwiftPatterns.git at 4.5.0 (0.46s)
Creating working copy for https://github.com/benspratling4/swiftfoundationcompression.git
Working copy of https://github.com/benspratling4/swiftfoundationcompression.git resolved at 4.0.0 (0eba1f7)
Creating working copy for https://github.com/benspratling4/SwiftPatterns.git
Working copy of https://github.com/benspratling4/SwiftPatterns.git resolved at 4.5.0
warning: '.resolve-product-dependencies': dependency 'swiftfoundationcompression' is not used by any target
Found 1 product dependencies
- SwiftPatterns
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/benspratling4/swiftfoundationcompression.git
https://github.com/benspratling4/swiftfoundationcompression.git
{
"dependencies" : [
{
"identity" : "swiftpatterns",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/benspratling4/SwiftPatterns.git"
}
],
"manifest_display_name" : "SwiftFoundationCompression",
"name" : "SwiftFoundationCompression",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftFoundationCompression",
"targets" : [
"SwiftFoundationCompression"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "SwiftFoundationCompressionTests",
"module_type" : "SwiftTarget",
"name" : "SwiftFoundationCompressionTests",
"path" : "Tests/SwiftFoundationCompressionTests",
"sources" : [
"DeflateTests.swift",
"GZipHeaderTests.swift",
"GunzipTests.swift",
"WritingZipFiles.swift",
"XCTestManifests.swift",
"ZipDirectoryWrappingTests.swift",
"ZipFileFormatTests.swift"
],
"target_dependencies" : [
"SwiftFoundationCompression"
],
"type" : "test"
},
{
"c99name" : "SwiftFoundationCompression",
"module_type" : "SwiftTarget",
"name" : "SwiftFoundationCompression",
"path" : "Sources/SwiftFoundationCompression",
"product_dependencies" : [
"SwiftPatterns"
],
"product_memberships" : [
"SwiftFoundationCompression"
],
"sources" : [
"Data+Compression.swift",
"FileManager+Compression.swift",
"GZipDataWrapping.swift",
"TarDirectoryWrapper.swift",
"Types.swift",
"WritingZipFiles.swift",
"ZipDirectoryWrapping.swift",
"ZipFileFormat.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-2F0A5646E1D333AE.txt
[4/26] Compiling SwiftPatterns PriorityQueue.swift
[5/26] Compiling SwiftPatterns QueuedVar.swift
[6/28] Compiling SwiftPatterns URL+ExtendedAttributes.swift
[7/28] Compiling SwiftPatterns URL+relativePaths.swift
[8/28] Compiling SwiftPatterns SerializedResourceWrapping.swift
[9/28] Compiling SwiftPatterns String+fixes.swift
[10/28] Compiling SwiftPatterns LocalFileSource.swift
[11/28] Compiling SwiftPatterns LogSearch.swift
[12/28] Compiling SwiftPatterns Math.swift
[13/28] Compiling SwiftPatterns MediatedAccess.swift
[14/28] Compiling SwiftPatterns DynamicCodingKeys.swift
[15/28] Compiling SwiftPatterns Int+Bits.swift
[16/28] Emitting module SwiftPatterns
[17/28] Compiling SwiftPatterns DataExtraction.swift
[18/28] Compiling SwiftPatterns DirectoryMonitor.swift
[19/28] Compiling SwiftPatterns ChangeSet.swift
[20/28] Compiling SwiftPatterns Cursor.swift
[21/28] Compiling SwiftPatterns Alert.swift
[22/28] Compiling SwiftPatterns Array+StableUniqueValues.swift
[23/28] Compiling SwiftPatterns WeightedNode.swift
[24/28] Compiling SwiftPatterns XMLItem.swift
[24/28] Write Objects.LinkFileList
[25/28] Linking libSwiftPatterns.dylib
[27/37] Compiling SwiftFoundationCompression Types.swift
[28/37] Compiling SwiftFoundationCompression ZipDirectoryWrapping.swift
[29/37] Compiling SwiftFoundationCompression TarDirectoryWrapper.swift
[30/37] Compiling SwiftFoundationCompression WritingZipFiles.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/WritingZipFiles.swift:13:22: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
11 |
12 |
13 | protocol ZipWriter : class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
14 |
15 | func finish()throws
[31/37] Compiling SwiftFoundationCompression FileManager+Compression.swift
[32/37] Compiling SwiftFoundationCompression GZipDataWrapping.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/GZipDataWrapping.swift:202:24: warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
200 | //do the dual-buffer thing
201 | var inBuffer:[UInt8] = [UInt8](repeating:0, count:chunkSize)
202 | let inBufferPointer = UnsafeMutableBufferPointer(start: &inBuffer, count: chunkSize)
| | |- note: implicit argument conversion from '[UInt8]' to 'UnsafeMutablePointer<UInt8>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
203 | var outBuffer:[UInt8] = [UInt8](repeating:0, count:chunkSize)
204 | let outBufferPointer = UnsafeMutableBufferPointer(start: &outBuffer, count: chunkSize)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/GZipDataWrapping.swift:204:25: warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
202 | let inBufferPointer = UnsafeMutableBufferPointer(start: &inBuffer, count: chunkSize)
203 | var outBuffer:[UInt8] = [UInt8](repeating:0, count:chunkSize)
204 | let outBufferPointer = UnsafeMutableBufferPointer(start: &outBuffer, count: chunkSize)
| | |- note: implicit argument conversion from '[UInt8]' to 'UnsafeMutablePointer<UInt8>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
205 |
206 | //pre-fill the inBuffer
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/GZipDataWrapping.swift:235:37: warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
233 | let fileNameData:Data = named.data(using: .isoLatin1) ?? Data()
234 | var dataBytes = [UInt8](repeating:0, count:fileNameData.count + 1)
235 | let _ = fileNameData.copyBytes(to: UnsafeMutableBufferPointer(start:&dataBytes, count:fileNameData.count))
| | |- note: implicit argument conversion from '[UInt8]' to 'UnsafeMutablePointer<UInt8>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
236 | var header:gz_header = gz_header(text: 0, time: time, xflags: 0, os: 0, extra: nil, extra_len: 0, extra_max: 0, name: &dataBytes, name_max: UInt32(fileNameData.count + 1), comment: nil, comm_max: 0, hcrc: 0, done: 0)
237 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/GZipDataWrapping.swift:236:120: warning: cannot use inout expression here; argument 'name' must be a pointer that outlives the call to 'init(text:time:xflags:os:extra:extra_len:extra_max:name:name_max:comment:comm_max:hcrc:done:)'
234 | var dataBytes = [UInt8](repeating:0, count:fileNameData.count + 1)
235 | let _ = fileNameData.copyBytes(to: UnsafeMutableBufferPointer(start:&dataBytes, count:fileNameData.count))
236 | var header:gz_header = gz_header(text: 0, time: time, xflags: 0, os: 0, extra: nil, extra_len: 0, extra_max: 0, name: &dataBytes, name_max: UInt32(fileNameData.count + 1), comment: nil, comm_max: 0, hcrc: 0, done: 0)
| |- warning: cannot use inout expression here; argument 'name' must be a pointer that outlives the call to 'init(text:time:xflags:os:extra:extra_len:extra_max:name:name_max:comment:comm_max:hcrc:done:)'
| |- note: implicit argument conversion from '[UInt8]' to 'UnsafeMutablePointer<Bytef>?' (aka 'Optional<UnsafeMutablePointer<UInt8>>') produces a pointer valid only for the duration of the call to 'init(text:time:xflags:os:extra:extra_len:extra_max:name:name_max:comment:comm_max:hcrc:done:)'
| `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
237 |
238 | streamStatus = deflateSetHeader(&stream, &header)
[33/37] Compiling SwiftFoundationCompression ZipFileFormat.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/ZipFileFormat.swift:126:13: warning: static property 'encrypted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
124 | struct GeneralPurposeFlags : OptionSet {
125 | let rawValue:UInt16
126 | static var encrypted:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 0)
| |- warning: static property 'encrypted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'encrypted' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'encrypted' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 | static var sizesAndCRCAreInDataDescriptor:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 3)
128 | static var strongEnctyption:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/ZipFileFormat.swift:127:13: warning: static property 'sizesAndCRCAreInDataDescriptor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
125 | let rawValue:UInt16
126 | static var encrypted:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 0)
127 | static var sizesAndCRCAreInDataDescriptor:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 3)
| |- warning: static property 'sizesAndCRCAreInDataDescriptor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sizesAndCRCAreInDataDescriptor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'sizesAndCRCAreInDataDescriptor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 | static var strongEnctyption:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 6)
129 | static var fileNameIsUnicode:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 11)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/ZipFileFormat.swift:128:13: warning: static property 'strongEnctyption' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
126 | static var encrypted:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 0)
127 | static var sizesAndCRCAreInDataDescriptor:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 3)
128 | static var strongEnctyption:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 6)
| |- warning: static property 'strongEnctyption' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strongEnctyption' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'strongEnctyption' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
129 | static var fileNameIsUnicode:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 11)
130 | static var centralDirectoryValuesAreOmittedDueToEncyption:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 13)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/ZipFileFormat.swift:129:13: warning: static property 'fileNameIsUnicode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
127 | static var sizesAndCRCAreInDataDescriptor:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 3)
128 | static var strongEnctyption:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 6)
129 | static var fileNameIsUnicode:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 11)
| |- warning: static property 'fileNameIsUnicode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fileNameIsUnicode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'fileNameIsUnicode' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
130 | static var centralDirectoryValuesAreOmittedDueToEncyption:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 13)
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/ZipFileFormat.swift:130:13: warning: static property 'centralDirectoryValuesAreOmittedDueToEncyption' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
128 | static var strongEnctyption:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 6)
129 | static var fileNameIsUnicode:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 11)
130 | static var centralDirectoryValuesAreOmittedDueToEncyption:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 13)
| |- warning: static property 'centralDirectoryValuesAreOmittedDueToEncyption' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'centralDirectoryValuesAreOmittedDueToEncyption' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'centralDirectoryValuesAreOmittedDueToEncyption' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 | }
132 |
[34/37] Emitting module SwiftFoundationCompression
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/WritingZipFiles.swift:13:22: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
11 |
12 |
13 | protocol ZipWriter : class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
14 |
15 | func finish()throws
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/ZipFileFormat.swift:126:13: warning: static property 'encrypted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
124 | struct GeneralPurposeFlags : OptionSet {
125 | let rawValue:UInt16
126 | static var encrypted:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 0)
| |- warning: static property 'encrypted' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'encrypted' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'encrypted' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 | static var sizesAndCRCAreInDataDescriptor:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 3)
128 | static var strongEnctyption:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/ZipFileFormat.swift:127:13: warning: static property 'sizesAndCRCAreInDataDescriptor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
125 | let rawValue:UInt16
126 | static var encrypted:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 0)
127 | static var sizesAndCRCAreInDataDescriptor:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 3)
| |- warning: static property 'sizesAndCRCAreInDataDescriptor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sizesAndCRCAreInDataDescriptor' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'sizesAndCRCAreInDataDescriptor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 | static var strongEnctyption:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 6)
129 | static var fileNameIsUnicode:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 11)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/ZipFileFormat.swift:128:13: warning: static property 'strongEnctyption' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
126 | static var encrypted:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 0)
127 | static var sizesAndCRCAreInDataDescriptor:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 3)
128 | static var strongEnctyption:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 6)
| |- warning: static property 'strongEnctyption' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strongEnctyption' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'strongEnctyption' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
129 | static var fileNameIsUnicode:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 11)
130 | static var centralDirectoryValuesAreOmittedDueToEncyption:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 13)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/ZipFileFormat.swift:129:13: warning: static property 'fileNameIsUnicode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
127 | static var sizesAndCRCAreInDataDescriptor:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 3)
128 | static var strongEnctyption:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 6)
129 | static var fileNameIsUnicode:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 11)
| |- warning: static property 'fileNameIsUnicode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fileNameIsUnicode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'fileNameIsUnicode' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
130 | static var centralDirectoryValuesAreOmittedDueToEncyption:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 13)
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/ZipFileFormat.swift:130:13: warning: static property 'centralDirectoryValuesAreOmittedDueToEncyption' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
128 | static var strongEnctyption:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 6)
129 | static var fileNameIsUnicode:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 11)
130 | static var centralDirectoryValuesAreOmittedDueToEncyption:GeneralPurposeFlags = GeneralPurposeFlags(rawValue: 1 << 13)
| |- warning: static property 'centralDirectoryValuesAreOmittedDueToEncyption' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'centralDirectoryValuesAreOmittedDueToEncyption' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'centralDirectoryValuesAreOmittedDueToEncyption' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 | }
132 |
[35/37] Compiling SwiftFoundationCompression Data+Compression.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/Data+Compression.swift:68:25: warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
66 | //do the dual-buffer thing
67 | var inBuffer:[UInt8] = [UInt8](repeating:0, count:chunkSize)
68 | let inBufferPointer = UnsafeMutableBufferPointer(start: &inBuffer, count: chunkSize)
| | |- note: implicit argument conversion from '[UInt8]' to 'UnsafeMutablePointer<UInt8>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
69 | var outBuffer:[UInt8] = [UInt8](repeating:0, count:chunkSize)
70 | let outBufferPointer = UnsafeMutableBufferPointer(start: &outBuffer, count: chunkSize)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/Data+Compression.swift:70:26: warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
68 | let inBufferPointer = UnsafeMutableBufferPointer(start: &inBuffer, count: chunkSize)
69 | var outBuffer:[UInt8] = [UInt8](repeating:0, count:chunkSize)
70 | let outBufferPointer = UnsafeMutableBufferPointer(start: &outBuffer, count: chunkSize)
| | |- note: implicit argument conversion from '[UInt8]' to 'UnsafeMutablePointer<UInt8>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
71 |
72 | //pre-fill the inBuffer
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/Data+Compression.swift:134:21: warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
132 | let chunkSize:Int = memoryPageSize
133 | var copyBuffer:[UInt8] = [UInt8](repeating:0, count:chunkSize)
134 | let inputBuffer = UnsafeMutableBufferPointer(start: ©Buffer, count: chunkSize)
| | |- note: implicit argument conversion from '[UInt8]' to 'UnsafeMutablePointer<UInt8>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
135 | let availableByteCount:Int = Swift.min(self.count, chunkSize)
136 | let copiedByteCount:Int = self.copyBytes(to: inputBuffer, from: 0..<availableByteCount)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/Data+Compression.swift:150:22: warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
148 | //prepare an output buffer
149 | var decompressBuffer:[UInt8] = [UInt8](repeating:0, count:chunkSize)
150 | let outputBuffer = UnsafeMutableBufferPointer(start: &decompressBuffer, count: chunkSize)
| | |- note: implicit argument conversion from '[UInt8]' to 'UnsafeMutablePointer<UInt8>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
151 |
152 | var outputData:Data = Data()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/Data+Compression.swift:136:7: warning: immutable value 'copiedByteCount' was never used; consider replacing with '_' or removing it
134 | let inputBuffer = UnsafeMutableBufferPointer(start: ©Buffer, count: chunkSize)
135 | let availableByteCount:Int = Swift.min(self.count, chunkSize)
136 | let copiedByteCount:Int = self.copyBytes(to: inputBuffer, from: 0..<availableByteCount)
| `- warning: immutable value 'copiedByteCount' was never used; consider replacing with '_' or removing it
137 | var aStream:z_stream = z_stream(next_in: inputBuffer.baseAddress, avail_in: UInt32(availableByteCount), total_in: 0, next_out: nil, avail_out: 0, total_out: 0, msg: nil, state: nil, zalloc: nil, zfree: nil, opaque: nil, data_type: 0, adler: 0, reserved: 0)
138 | let windowBits:Int32 = -15 //some kind of magic value
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/Data+Compression.swift:194:21: warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
192 | let chunkSize:Int = memoryPageSize
193 | var copyBuffer:[UInt8] = [UInt8](repeating:0, count:chunkSize)
194 | let inputBuffer = UnsafeMutableBufferPointer(start: ©Buffer, count: chunkSize)
| | |- note: implicit argument conversion from '[UInt8]' to 'UnsafeMutablePointer<UInt8>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
195 | let availableByteCount:Int = Swift.min(self.count, chunkSize)
196 | let copiedByteCount:Int = self.copyBytes(to: inputBuffer, from: 0..<availableByteCount)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/Data+Compression.swift:210:22: warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
208 | //prepare an output buffer
209 | var decompressBuffer:[UInt8] = [UInt8](repeating:0, count:chunkSize)
210 | let outputBuffer = UnsafeMutableBufferPointer(start: &decompressBuffer, count: chunkSize)
| | |- note: implicit argument conversion from '[UInt8]' to 'UnsafeMutablePointer<UInt8>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
211 |
212 | var outputData:Data = Data()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/Data+Compression.swift:196:7: warning: immutable value 'copiedByteCount' was never used; consider replacing with '_' or removing it
194 | let inputBuffer = UnsafeMutableBufferPointer(start: ©Buffer, count: chunkSize)
195 | let availableByteCount:Int = Swift.min(self.count, chunkSize)
196 | let copiedByteCount:Int = self.copyBytes(to: inputBuffer, from: 0..<availableByteCount)
| `- warning: immutable value 'copiedByteCount' was never used; consider replacing with '_' or removing it
197 | var aStream:z_stream = z_stream(next_in: inputBuffer.baseAddress, avail_in: UInt32(availableByteCount), total_in: 0, next_out: nil, avail_out: 0, total_out: 0, msg: nil, state: nil, zalloc: nil, zfree: nil, opaque: nil, data_type: 0, adler: 0, reserved: 0)
198 | let windowBits:Int32 = 15 | 16 //some kind of magic value
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/Data+Compression.swift:257:25: warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
255 | //do the dual-buffer thing
256 | var inBuffer:[UInt8] = [UInt8](repeating:0, count:chunkSize)
257 | let inBufferPointer = UnsafeMutableBufferPointer(start: &inBuffer, count: chunkSize)
| | |- note: implicit argument conversion from '[UInt8]' to 'UnsafeMutablePointer<UInt8>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
258 | var outBuffer:[UInt8] = [UInt8](repeating:0, count:chunkSize)
259 | let outBufferPointer = UnsafeMutableBufferPointer(start: &outBuffer, count: chunkSize)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFoundationCompression/Data+Compression.swift:259:26: warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
257 | let inBufferPointer = UnsafeMutableBufferPointer(start: &inBuffer, count: chunkSize)
258 | var outBuffer:[UInt8] = [UInt8](repeating:0, count:chunkSize)
259 | let outBufferPointer = UnsafeMutableBufferPointer(start: &outBuffer, count: chunkSize)
| | |- note: implicit argument conversion from '[UInt8]' to 'UnsafeMutablePointer<UInt8>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafeMutableBufferPointer<UInt8>' results in a dangling buffer pointer
260 |
261 | //pre-fill the inBuffer
[35/37] Write Objects.LinkFileList
[36/37] Linking libSwiftFoundationCompression.dylib
Build complete! (11.77s)
Build complete.
{
"dependencies" : [
{
"identity" : "swiftpatterns",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/benspratling4/SwiftPatterns.git"
}
],
"manifest_display_name" : "SwiftFoundationCompression",
"name" : "SwiftFoundationCompression",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftFoundationCompression",
"targets" : [
"SwiftFoundationCompression"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "SwiftFoundationCompressionTests",
"module_type" : "SwiftTarget",
"name" : "SwiftFoundationCompressionTests",
"path" : "Tests/SwiftFoundationCompressionTests",
"sources" : [
"DeflateTests.swift",
"GZipHeaderTests.swift",
"GunzipTests.swift",
"WritingZipFiles.swift",
"XCTestManifests.swift",
"ZipDirectoryWrappingTests.swift",
"ZipFileFormatTests.swift"
],
"target_dependencies" : [
"SwiftFoundationCompression"
],
"type" : "test"
},
{
"c99name" : "SwiftFoundationCompression",
"module_type" : "SwiftTarget",
"name" : "SwiftFoundationCompression",
"path" : "Sources/SwiftFoundationCompression",
"product_dependencies" : [
"SwiftPatterns"
],
"product_memberships" : [
"SwiftFoundationCompression"
],
"sources" : [
"Data+Compression.swift",
"FileManager+Compression.swift",
"GZipDataWrapping.swift",
"TarDirectoryWrapper.swift",
"Types.swift",
"WritingZipFiles.swift",
"ZipDirectoryWrapping.swift",
"ZipFileFormat.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.