The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of SwiftPatterns, reference master (7223d0), with Swift 6.0 for macOS (SPM) on 16 Aug 2025 22:47:23 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.67.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 7223d0f Fix crash bug in replacing attributed strings.
Cloned https://github.com/benspratling4/SwiftPatterns.git
Revision (git rev-parse @):
7223d0f3908c3504d18dcdaa129664b347db318e
SUCCESS checkout https://github.com/benspratling4/SwiftPatterns.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/benspratling4/SwiftPatterns.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/4] Write sources
[1/4] Write swift-version-5BDAB9E9C0126B9D.txt
[3/28] 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/30] Compiling SwiftPatterns WeightedNode.swift
[5/30] Compiling SwiftPatterns XMLItem.swift
[6/30] Compiling SwiftPatterns Alert.swift
[7/30] Compiling SwiftPatterns Array+StableUniqueValues.swift
[8/30] Compiling SwiftPatterns Array+dropLastWhile.swift
[9/30] Compiling SwiftPatterns JSONPrimitive.swift
[10/30] Compiling SwiftPatterns LocalFileSource.swift
[11/30] Compiling SwiftPatterns LogSearch.swift
[12/30] 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/30] 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/30] Compiling SwiftPatterns Math.swift
[15/30] Compiling SwiftPatterns MediatedAccess.swift
[16/30] Compiling SwiftPatterns PriorityQueue.swift
[17/30] Compiling SwiftPatterns QueuedVar.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
[18/30] 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
[19/30] Compiling SwiftPatterns SkippingDecodeErrors.swift
[20/30] Compiling SwiftPatterns String+CharacterSet+replacements.swift
[21/30] Compiling SwiftPatterns DirectoryMonitor.swift
[22/30] Compiling SwiftPatterns DynamicCodingKeys.swift
[23/30] Compiling SwiftPatterns Int+Bits.swift
[24/30] Compiling SwiftPatterns String+fixes.swift
[25/30] Compiling SwiftPatterns String+insertWithPrecautionaryWhitespace.swift
[26/30] 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 | 	}
[27/30] 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 | 	}
[28/30] 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 | 	}
[28/30] Write Objects.LinkFileList
[29/30] Linking libSwiftPatterns.dylib
Build complete! (8.51s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/SwiftPatterns/PrivacyInfo.xcprivacy
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",
        "String+replaceWithPrecautionaryWhitespaceTests.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",
        "String+insertWithPrecautionaryWhitespace.swift",
        "URL+ExtendedAttributes.swift",
        "URL+relativePaths.swift",
        "WeightedNode.swift",
        "XMLItem.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.