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 grip, reference 1.3.5 (0a2efd), with Swift 6.0 for macOS (SPM) on 27 Nov 2024 14:28:09 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/krad/grip.git
Reference: 1.3.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/krad/grip
 * tag               1.3.5      -> FETCH_HEAD
HEAD is now at 0a2efd0 Getting the binary encoder to work with swift 4.1
Cloned https://github.com/krad/grip.git
Revision (git rev-parse @):
0a2efd04d2318f13ac766b47fbaa35613a9494f4
SUCCESS checkout https://github.com/krad/grip.git at 1.3.5
========================================
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": "grip",
      "name": "grip",
      "url": "https://github.com/krad/grip.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/grip",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/krad/grip.git
[2/176] Fetching grip
Fetched https://github.com/krad/grip.git from cache (0.67s)
Creating working copy for https://github.com/krad/grip.git
Working copy of https://github.com/krad/grip.git resolved at 1.3.5 (0a2efd0)
warning: '.resolve-product-dependencies': dependency 'grip' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/krad/grip.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/15] Compiling grip StreamTypePacket.swift
[4/15] Compiling grip VideoParamSetPacket.swift
[5/15] Compiling grip VideoSamplePacket.swift
[6/15] Compiling grip VideoDimensionsPacket.swift
[7/15] Compiling grip StreamType.swift
/Users/admin/builder/spi-builder-workspace/Sources/grip/StreamType.swift:21:23: warning: static property 'video' is not concurrency-safe because non-'Sendable' type 'StreamType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct StreamType: OptionSet {
   |               `- note: consider making struct 'StreamType' conform to the 'Sendable' protocol
 4 |     public var rawValue: UInt8
 5 |
   :
19 |     }
20 |
21 |     public static let video = StreamType(rawValue: 1 << 0)
   |                       |- warning: static property 'video' is not concurrency-safe because non-'Sendable' type 'StreamType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'video' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |     public static let audio = StreamType(rawValue: 1 << 1)
23 |
/Users/admin/builder/spi-builder-workspace/Sources/grip/StreamType.swift:22:23: warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'StreamType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct StreamType: OptionSet {
   |               `- note: consider making struct 'StreamType' conform to the 'Sendable' protocol
 4 |     public var rawValue: UInt8
 5 |
   :
20 |
21 |     public static let video = StreamType(rawValue: 1 << 0)
22 |     public static let audio = StreamType(rawValue: 1 << 1)
   |                       |- warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'StreamType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'audio' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |     public func supported(_ sample: CompressedSample) -> Bool {
[8/16] Compiling grip Packets.swift
[9/16] Compiling grip NALU.swift
[10/16] Compiling grip AudioSamplePacket.swift
[11/16] Compiling grip CompressedSample.swift
/Users/admin/builder/spi-builder-workspace/Sources/grip/Extensions/ByteHelpers.swift:22:5: warning: 'public' modifier is redundant for property declared in a public extension
20 | public extension Data {
21 |
22 |     public var bytes: [UInt8] {
   |     `- warning: 'public' modifier is redundant for property declared in a public extension
23 |         var bytes = [UInt8](repeating: 0, count: self.count)
24 |         self.copyBytes(to: &bytes, count: self.count)
/Users/admin/builder/spi-builder-workspace/Sources/grip/Extensions/ByteHelpers.swift:28:5: warning: 'public' modifier is redundant for instance method declared in a public extension
26 |     }
27 |
28 |     public func hexEncodedString() -> String {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
29 |         return map { String(format: "%02hhx", $0) }.joined()
30 |     }
[12/16] Compiling grip ByteHelpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/grip/Extensions/ByteHelpers.swift:22:5: warning: 'public' modifier is redundant for property declared in a public extension
20 | public extension Data {
21 |
22 |     public var bytes: [UInt8] {
   |     `- warning: 'public' modifier is redundant for property declared in a public extension
23 |         var bytes = [UInt8](repeating: 0, count: self.count)
24 |         self.copyBytes(to: &bytes, count: self.count)
/Users/admin/builder/spi-builder-workspace/Sources/grip/Extensions/ByteHelpers.swift:28:5: warning: 'public' modifier is redundant for instance method declared in a public extension
26 |     }
27 |
28 |     public func hexEncodedString() -> String {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
29 |         return map { String(format: "%02hhx", $0) }.joined()
30 |     }
[13/16] Emitting module grip
/Users/admin/builder/spi-builder-workspace/Sources/grip/Codable/BinaryEncodable.swift:22:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 20 | /// compiler.
 21 | public extension BinaryEncodable {
 22 |     public func binaryEncode(to encoder: BinaryEncoder) throws {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 23 |         try self.encode(to: encoder)
 24 |     }
/Users/admin/builder/spi-builder-workspace/Sources/grip/Codable/BinaryEncodable.swift:37:5: warning: 'public' modifier is redundant for static method declared in a public extension
 35 | /// extracting the resulting data.
 36 | public extension BinaryEncoder {
 37 |     public static func encode(_ value: BinaryEncodable) throws -> [UInt8] {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 38 |         let encoder = BinaryEncoder()
 39 |         try value.binaryEncode(to: encoder)
/Users/admin/builder/spi-builder-workspace/Sources/grip/Extensions/ByteHelpers.swift:22:5: warning: 'public' modifier is redundant for property declared in a public extension
20 | public extension Data {
21 |
22 |     public var bytes: [UInt8] {
   |     `- warning: 'public' modifier is redundant for property declared in a public extension
23 |         var bytes = [UInt8](repeating: 0, count: self.count)
24 |         self.copyBytes(to: &bytes, count: self.count)
/Users/admin/builder/spi-builder-workspace/Sources/grip/Extensions/ByteHelpers.swift:28:5: warning: 'public' modifier is redundant for instance method declared in a public extension
26 |     }
27 |
28 |     public func hexEncodedString() -> String {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
29 |         return map { String(format: "%02hhx", $0) }.joined()
30 |     }
/Users/admin/builder/spi-builder-workspace/Sources/grip/StreamType.swift:21:23: warning: static property 'video' is not concurrency-safe because non-'Sendable' type 'StreamType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct StreamType: OptionSet {
   |               `- note: consider making struct 'StreamType' conform to the 'Sendable' protocol
 4 |     public var rawValue: UInt8
 5 |
   :
19 |     }
20 |
21 |     public static let video = StreamType(rawValue: 1 << 0)
   |                       |- warning: static property 'video' is not concurrency-safe because non-'Sendable' type 'StreamType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'video' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |     public static let audio = StreamType(rawValue: 1 << 1)
23 |
/Users/admin/builder/spi-builder-workspace/Sources/grip/StreamType.swift:22:23: warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'StreamType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct StreamType: OptionSet {
   |               `- note: consider making struct 'StreamType' conform to the 'Sendable' protocol
 4 |     public var rawValue: UInt8
 5 |
   :
20 |
21 |     public static let video = StreamType(rawValue: 1 << 0)
22 |     public static let audio = StreamType(rawValue: 1 << 1)
   |                       |- warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'StreamType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'audio' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |     public func supported(_ sample: CompressedSample) -> Bool {
[14/16] Compiling grip BinaryEncodable.swift
/Users/admin/builder/spi-builder-workspace/Sources/grip/Codable/BinaryEncodable.swift:22:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 20 | /// compiler.
 21 | public extension BinaryEncodable {
 22 |     public func binaryEncode(to encoder: BinaryEncoder) throws {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 23 |         try self.encode(to: encoder)
 24 |     }
/Users/admin/builder/spi-builder-workspace/Sources/grip/Codable/BinaryEncodable.swift:37:5: warning: 'public' modifier is redundant for static method declared in a public extension
 35 | /// extracting the resulting data.
 36 | public extension BinaryEncoder {
 37 |     public static func encode(_ value: BinaryEncodable) throws -> [UInt8] {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 38 |         let encoder = BinaryEncoder()
 39 |         try value.binaryEncode(to: encoder)
[15/16] Compiling grip BinaryEncodableExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/grip/Codable/BinaryEncodable.swift:22:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 20 | /// compiler.
 21 | public extension BinaryEncodable {
 22 |     public func binaryEncode(to encoder: BinaryEncoder) throws {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 23 |         try self.encode(to: encoder)
 24 |     }
/Users/admin/builder/spi-builder-workspace/Sources/grip/Codable/BinaryEncodable.swift:37:5: warning: 'public' modifier is redundant for static method declared in a public extension
 35 | /// extracting the resulting data.
 36 | public extension BinaryEncoder {
 37 |     public static func encode(_ value: BinaryEncodable) throws -> [UInt8] {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 38 |         let encoder = BinaryEncoder()
 39 |         try value.binaryEncode(to: encoder)
[16/16] Compiling grip Writeable.swift
Build complete! (11.50s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "grip",
  "name" : "grip",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "grip",
      "targets" : [
        "grip"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "gripTests",
      "module_type" : "SwiftTarget",
      "name" : "gripTests",
      "path" : "Tests/gripTests",
      "sources" : [
        "AudioSampleTests.swift",
        "NALUIteratorTests.swift",
        "StreamTypePacketTests.swift",
        "VideoDimensionsTests.swift",
        "VideoParamsPacketTests.swift",
        "VideoSampleTests.swift"
      ],
      "target_dependencies" : [
        "grip"
      ],
      "type" : "test"
    },
    {
      "c99name" : "grip",
      "module_type" : "SwiftTarget",
      "name" : "grip",
      "path" : "Sources/grip",
      "product_memberships" : [
        "grip"
      ],
      "sources" : [
        "Codable/BinaryEncodable.swift",
        "Codable/BinaryEncodableExtensions.swift",
        "CompressedSample.swift",
        "Extensions/ByteHelpers.swift",
        "NALU.swift",
        "Packets/AudioSamplePacket.swift",
        "Packets/Packets.swift",
        "Packets/StreamTypePacket.swift",
        "Packets/VideoDimensionsPacket.swift",
        "Packets/VideoParamSetPacket.swift",
        "Packets/VideoSamplePacket.swift",
        "StreamType.swift",
        "Writeable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.