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 SwiftyGPIO, reference 2.0.0-beta10 (d9b049), with Swift 6.2 (beta) for macOS (SPM) on 20 Jun 2025 18:41:59 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/uraimo/SwiftyGPIO.git
Reference: 2.0.0-beta10
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/uraimo/SwiftyGPIO
 * tag               2.0.0-beta10 -> FETCH_HEAD
HEAD is now at d9b0494 Workaround for #96, Issue with poll on boot
Cloned https://github.com/uraimo/SwiftyGPIO.git
Revision (git rev-parse @):
d9b04944a4c0639d606e9a0fcfef41c8ebcf6d2c
SUCCESS checkout https://github.com/uraimo/SwiftyGPIO.git at 2.0.0-beta10
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/uraimo/SwiftyGPIO.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/15] Emitting module SwiftyGPIO
[4/16] Compiling SwiftyGPIO RaspberryPWM.swift
[5/16] Compiling SwiftyGPIO RaspberryGPIO.swift
[6/16] Compiling SwiftyGPIO Mailbox.swift
[7/16] Compiling SwiftyGPIO Presets.swift
[8/16] Compiling SwiftyGPIO GPIO.swift
[9/16] Compiling SwiftyGPIO I2C.swift
[10/16] Compiling SwiftyGPIO 1Wire.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyGPIO/Generic/1Wire.swift:76:19: warning: initialization of 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') results in a dangling pointer [#TemporaryPointers]
 74 |     private func readLine(_ fd: Int32) throws -> String? {
 75 |         var buf = [CChar](repeating:0, count: 128)
 76 |         var ptr = UnsafeMutablePointer<CChar>(&buf)
    |                   |                           |- note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
    |                   |                           `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                   `- warning: initialization of 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') results in a dangling pointer [#TemporaryPointers]
 77 |         var pos = 0
 78 |
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[11/16] Compiling SwiftyGPIO ADC.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyGPIO/Generic/1Wire.swift:76:19: warning: initialization of 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') results in a dangling pointer [#TemporaryPointers]
 74 |     private func readLine(_ fd: Int32) throws -> String? {
 75 |         var buf = [CChar](repeating:0, count: 128)
 76 |         var ptr = UnsafeMutablePointer<CChar>(&buf)
    |                   |                           |- note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
    |                   |                           `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                   `- warning: initialization of 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') results in a dangling pointer [#TemporaryPointers]
 77 |         var pos = 0
 78 |
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[12/16] Compiling SwiftyGPIO SwiftyGPIO.swift
[13/16] Compiling SwiftyGPIO SPI.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyGPIO/Generic/SPI.swift:94:46: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
 92 |
 93 |         var tr = spi_ioc_transfer(
 94 |             tx_buf: UInt64( UInt(bitPattern: UnsafeMutablePointer(mutating: tx)) ),
    |                                              |                              |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
    |                                              |                              `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                                              `- warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
 95 |             rx_buf: UInt64( UInt(bitPattern: UnsafeMutablePointer(mutating: rx)) ),
 96 |             len: UInt32(tx.count),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyGPIO/Generic/SPI.swift:95:46: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
 93 |         var tr = spi_ioc_transfer(
 94 |             tx_buf: UInt64( UInt(bitPattern: UnsafeMutablePointer(mutating: tx)) ),
 95 |             rx_buf: UInt64( UInt(bitPattern: UnsafeMutablePointer(mutating: rx)) ),
    |                                              |                              |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
    |                                              |                              `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                                              `- warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
 96 |             len: UInt32(tx.count),
 97 |             speed_hz: speed,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyGPIO/Generic/UART.swift:94:19: warning: initialization of 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') results in a dangling pointer [#TemporaryPointers]
 92 |     public func readLine() throws -> String {
 93 |         var buf = [CChar](repeating:0, count: 4097) //4096 chars at max in canonical mode
 94 |         var ptr = UnsafeMutablePointer<CChar>(&buf)
    |                   |                           |- note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
    |                   |                           `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                   `- warning: initialization of 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') results in a dangling pointer [#TemporaryPointers]
 95 |         var pos = 0
 96 |
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[14/16] Compiling SwiftyGPIO UART.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyGPIO/Generic/SPI.swift:94:46: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
 92 |
 93 |         var tr = spi_ioc_transfer(
 94 |             tx_buf: UInt64( UInt(bitPattern: UnsafeMutablePointer(mutating: tx)) ),
    |                                              |                              |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
    |                                              |                              `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                                              `- warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
 95 |             rx_buf: UInt64( UInt(bitPattern: UnsafeMutablePointer(mutating: rx)) ),
 96 |             len: UInt32(tx.count),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyGPIO/Generic/SPI.swift:95:46: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
 93 |         var tr = spi_ioc_transfer(
 94 |             tx_buf: UInt64( UInt(bitPattern: UnsafeMutablePointer(mutating: tx)) ),
 95 |             rx_buf: UInt64( UInt(bitPattern: UnsafeMutablePointer(mutating: rx)) ),
    |                                              |                              |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
    |                                              |                              `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                                              `- warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
 96 |             len: UInt32(tx.count),
 97 |             speed_hz: speed,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyGPIO/Generic/UART.swift:94:19: warning: initialization of 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') results in a dangling pointer [#TemporaryPointers]
 92 |     public func readLine() throws -> String {
 93 |         var buf = [CChar](repeating:0, count: 4097) //4096 chars at max in canonical mode
 94 |         var ptr = UnsafeMutablePointer<CChar>(&buf)
    |                   |                           |- note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
    |                   |                           `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                   `- warning: initialization of 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') results in a dangling pointer [#TemporaryPointers]
 95 |         var pos = 0
 96 |
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[15/16] Compiling SwiftyGPIO SunXi.swift
[16/16] Compiling SwiftyGPIO RaspberrySPI.swift
Build complete! (3.95s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftyGPIO",
  "name" : "SwiftyGPIO",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftyGPIO",
      "targets" : [
        "SwiftyGPIO"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftyGPIOTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyGPIOTests",
      "path" : "Tests/SwiftyGPIOTests",
      "sources" : [
        "SwiftyGPIOTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SwiftyGPIO"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftyGPIO",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyGPIO",
      "path" : "Sources/SwiftyGPIO",
      "product_memberships" : [
        "SwiftyGPIO"
      ],
      "sources" : [
        "Generic/1Wire.swift",
        "Generic/ADC.swift",
        "Generic/GPIO.swift",
        "Generic/I2C.swift",
        "Generic/SPI.swift",
        "Generic/UART.swift",
        "Presets.swift",
        "SunXi.swift",
        "SwiftyGPIO.swift",
        "Vendor/Mailbox.swift",
        "Vendor/RaspberryGPIO.swift",
        "Vendor/RaspberryPWM.swift",
        "Vendor/RaspberrySPI.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.