This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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

Successful build of SwiftPatterns with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/benspratling4/SwiftPatterns.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/benspratling4/SwiftPatterns
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at c2631f7 Add SkippingDecodeErrors
Cloned https://github.com/benspratling4/SwiftPatterns.git
Revision (git rev-parse @):
c2631f7c4b22440f70cb82d1d6edb801c30dd292
SUCCESS checkout https://github.com/benspratling4/SwiftPatterns.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/benspratling4/SwiftPatterns.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[1/4] Write swift-version-6F35C1178C84523A.txt
[3/27] Emitting module SwiftPatterns
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPatterns/SerializedResourceWrapping.swift:25:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 23 |
 24 | /// like a directory
 25 | public protocol SubResourceWrapping : class, SerializedResourceWrapping {
    |                                       `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 26 |
 27 | 	///access all the sub resources, usually for iteration
[4/29] Compiling SwiftPatterns Math.swift
[5/29] Compiling SwiftPatterns MediatedAccess.swift
[6/29] Compiling SwiftPatterns Alert.swift
[7/29] Compiling SwiftPatterns Array+StableUniqueValues.swift
[8/29] Compiling SwiftPatterns Array+dropLastWhile.swift
[9/29] Compiling SwiftPatterns DirectoryMonitor.swift
[10/29] Compiling SwiftPatterns DynamicCodingKeys.swift
[11/29] Compiling SwiftPatterns Int+Bits.swift
[12/29] Compiling SwiftPatterns URL+ExtendedAttributes.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPatterns/URL+ExtendedAttributes.swift:76:13: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
 74 | 		set (newValue) {
 75 | 			if let newData:Data = newValue {
 76 | 				newData.withUnsafeBytes({ (buffer) -> Void in
    |             `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
 77 | 					url.withUnsafeFileSystemRepresentation({ (systemPath) in
 78 | 						_ = setxattr(systemPath, key, buffer, newData.count, 0, 0)	//fail is ==-1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPatterns/URL+relativePaths.swift:34:15: warning: immutable value 'childComponent' was never used; consider replacing with '_' or removing it
32 | 			return false
33 | 		}
34 | 		for (index, childComponent) in parentComponents.enumerated() {
   |               `- warning: immutable value 'childComponent' was never used; consider replacing with '_' or removing it
35 | 			if parentComponents[index] != childComponents[index] {
36 | 				return false
[13/29] Compiling SwiftPatterns URL+relativePaths.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPatterns/URL+ExtendedAttributes.swift:76:13: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
 74 | 		set (newValue) {
 75 | 			if let newData:Data = newValue {
 76 | 				newData.withUnsafeBytes({ (buffer) -> Void in
    |             `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
 77 | 					url.withUnsafeFileSystemRepresentation({ (systemPath) in
 78 | 						_ = setxattr(systemPath, key, buffer, newData.count, 0, 0)	//fail is ==-1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPatterns/URL+relativePaths.swift:34:15: warning: immutable value 'childComponent' was never used; consider replacing with '_' or removing it
32 | 			return false
33 | 		}
34 | 		for (index, childComponent) in parentComponents.enumerated() {
   |               `- warning: immutable value 'childComponent' was never used; consider replacing with '_' or removing it
35 | 			if parentComponents[index] != childComponents[index] {
36 | 				return false
[14/29] Compiling SwiftPatterns SerializedResourceWrapping.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPatterns/SerializedResourceWrapping.swift:25:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 23 |
 24 | /// like a directory
 25 | public protocol SubResourceWrapping : class, SerializedResourceWrapping {
    |                                       `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 26 |
 27 | 	///access all the sub resources, usually for iteration
[15/29] Compiling SwiftPatterns SkippingDecodeErrors.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPatterns/SerializedResourceWrapping.swift:25:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 23 |
 24 | /// like a directory
 25 | public protocol SubResourceWrapping : class, SerializedResourceWrapping {
    |                                       `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 26 |
 27 | 	///access all the sub resources, usually for iteration
[16/29] Compiling SwiftPatterns JSONPrimitive.swift
[17/29] Compiling SwiftPatterns LocalFileSource.swift
[18/29] Compiling SwiftPatterns LogSearch.swift
[19/29] Compiling SwiftPatterns WeightedNode.swift
[20/29] Compiling SwiftPatterns XMLItem.swift
[21/29] Compiling SwiftPatterns String+CharacterSet+replacements.swift
[22/29] Compiling SwiftPatterns String+fixes.swift
[23/29] Compiling SwiftPatterns PriorityQueue.swift
[24/29] Compiling SwiftPatterns QueuedVar.swift
[25/29] Compiling SwiftPatterns ChangeSet.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPatterns/ChangeSet.swift:78:7: warning: variable 'exhaustedOld' was written to, but never read
 76 | 		var oldIndex:Int = 0
 77 | 		var newIndex:Int = 0
 78 | 		var exhaustedOld:Bool = false
    |       `- warning: variable 'exhaustedOld' was written to, but never read
 79 | 		var exhaustedNew:Bool = false
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPatterns/ChangeSet.swift:79:7: warning: variable 'exhaustedNew' was written to, but never read
 77 | 		var newIndex:Int = 0
 78 | 		var exhaustedOld:Bool = false
 79 | 		var exhaustedNew:Bool = false
    |       `- warning: variable 'exhaustedNew' was written to, but never read
 80 |
 81 | 		//keys are original index number, values are new index number
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPatterns/DataExtraction.swift:19:3: warning: using '_' to ignore the result of a Void-returning function is redundant
 17 | 		defer { unsafeBytes.deallocate() }
 18 | 		let bufferPointer = UnsafeMutableBufferPointer(start: unsafeBytes, count: 1)
 19 | 		_ = self.copyBytes(to: bufferPointer, from: index..<(index + width))
    |   `- warning: using '_' to ignore the result of a Void-returning function is redundant
 20 | 		return unsafeBytes.pointee
 21 | 	}
[26/29] Compiling SwiftPatterns Cursor.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPatterns/ChangeSet.swift:78:7: warning: variable 'exhaustedOld' was written to, but never read
 76 | 		var oldIndex:Int = 0
 77 | 		var newIndex:Int = 0
 78 | 		var exhaustedOld:Bool = false
    |       `- warning: variable 'exhaustedOld' was written to, but never read
 79 | 		var exhaustedNew:Bool = false
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPatterns/ChangeSet.swift:79:7: warning: variable 'exhaustedNew' was written to, but never read
 77 | 		var newIndex:Int = 0
 78 | 		var exhaustedOld:Bool = false
 79 | 		var exhaustedNew:Bool = false
    |       `- warning: variable 'exhaustedNew' was written to, but never read
 80 |
 81 | 		//keys are original index number, values are new index number
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPatterns/DataExtraction.swift:19:3: warning: using '_' to ignore the result of a Void-returning function is redundant
 17 | 		defer { unsafeBytes.deallocate() }
 18 | 		let bufferPointer = UnsafeMutableBufferPointer(start: unsafeBytes, count: 1)
 19 | 		_ = self.copyBytes(to: bufferPointer, from: index..<(index + width))
    |   `- warning: using '_' to ignore the result of a Void-returning function is redundant
 20 | 		return unsafeBytes.pointee
 21 | 	}
[27/29] Compiling SwiftPatterns DataExtraction.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPatterns/ChangeSet.swift:78:7: warning: variable 'exhaustedOld' was written to, but never read
 76 | 		var oldIndex:Int = 0
 77 | 		var newIndex:Int = 0
 78 | 		var exhaustedOld:Bool = false
    |       `- warning: variable 'exhaustedOld' was written to, but never read
 79 | 		var exhaustedNew:Bool = false
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPatterns/ChangeSet.swift:79:7: warning: variable 'exhaustedNew' was written to, but never read
 77 | 		var newIndex:Int = 0
 78 | 		var exhaustedOld:Bool = false
 79 | 		var exhaustedNew:Bool = false
    |       `- warning: variable 'exhaustedNew' was written to, but never read
 80 |
 81 | 		//keys are original index number, values are new index number
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPatterns/DataExtraction.swift:19:3: warning: using '_' to ignore the result of a Void-returning function is redundant
 17 | 		defer { unsafeBytes.deallocate() }
 18 | 		let bufferPointer = UnsafeMutableBufferPointer(start: unsafeBytes, count: 1)
 19 | 		_ = self.copyBytes(to: bufferPointer, from: index..<(index + width))
    |   `- warning: using '_' to ignore the result of a Void-returning function is redundant
 20 | 		return unsafeBytes.pointee
 21 | 	}
[27/29] Write Objects.LinkFileList
[28/29] Linking libSwiftPatterns.dylib
Build complete! (34.93s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftPatterns",
  "name" : "SwiftPatterns",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftPatterns",
      "targets" : [
        "SwiftPatterns"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "SwiftPatternsTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftPatternsTests",
      "path" : "Tests/SwiftPatternsTests",
      "sources" : [
        "ArrayDropLastWhileTests.swift",
        "ChangeSetTests.swift",
        "JSONPrimitiveTests.swift",
        "LogSearchTests.swift",
        "SkippingDecodeErrorsTests.swift",
        "String+fixes_Tests.swift",
        "StringCharacterSetTests.swift",
        "XMLItemTests.swift"
      ],
      "target_dependencies" : [
        "SwiftPatterns"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftPatterns",
      "module_type" : "SwiftTarget",
      "name" : "SwiftPatterns",
      "path" : "Sources/SwiftPatterns",
      "product_memberships" : [
        "SwiftPatterns"
      ],
      "sources" : [
        "Alert.swift",
        "Array+StableUniqueValues.swift",
        "Array+dropLastWhile.swift",
        "ChangeSet.swift",
        "Cursor.swift",
        "DataExtraction.swift",
        "DirectoryMonitor.swift",
        "DynamicCodingKeys.swift",
        "Int+Bits.swift",
        "JSONPrimitive.swift",
        "LocalFileSource.swift",
        "LogSearch.swift",
        "Math.swift",
        "MediatedAccess.swift",
        "PriorityQueue.swift",
        "QueuedVar.swift",
        "SerializedResourceWrapping.swift",
        "SkippingDecodeErrors.swift",
        "String+CharacterSet+replacements.swift",
        "String+fixes.swift",
        "URL+ExtendedAttributes.swift",
        "URL+relativePaths.swift",
        "WeightedNode.swift",
        "XMLItem.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.