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 UBloxGPS, reference master (c4d48e), with Swift 6.0 for macOS (SPM) on 30 Oct 2024 21:48:54 UTC.

Swift 6 data race errors: 0

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/uraimo/ubloxgps.swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/uraimo/ubloxgps.swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at c4d48e4 Now requiring Swift 4.x+
Cloned https://github.com/uraimo/ubloxgps.swift.git
Revision (git rev-parse @):
c4d48e4d11984822e62124b8255a4e68e5303ef2
SUCCESS checkout https://github.com/uraimo/ubloxgps.swift.git at master
Fetching https://github.com/uraimo/SwiftyGPIO.git
[1/2387] Fetching swiftygpio
Fetched https://github.com/uraimo/SwiftyGPIO.git from cache (1.08s)
Computing version for https://github.com/uraimo/SwiftyGPIO.git
Computed https://github.com/uraimo/SwiftyGPIO.git at 1.4.4 (2.64s)
Creating working copy for https://github.com/uraimo/SwiftyGPIO.git
Working copy of https://github.com/uraimo/SwiftyGPIO.git resolved at 1.4.4
========================================
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": "ubloxgps.swift",
      "name": "UBloxGPS",
      "url": "https://github.com/uraimo/ubloxgps.swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ubloxgps.swift",
      "dependencies": [
        {
          "identity": "swiftygpio",
          "name": "SwiftyGPIO",
          "url": "https://github.com/uraimo/SwiftyGPIO.git",
          "version": "1.4.4",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftyGPIO",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/uraimo/ubloxgps.swift.git
[1/103] Fetching ubloxgps.swift
Fetched https://github.com/uraimo/ubloxgps.swift.git from cache (1.41s)
Fetching https://github.com/uraimo/SwiftyGPIO.git from cache
Fetched https://github.com/uraimo/SwiftyGPIO.git from cache (0.46s)
Computing version for https://github.com/uraimo/SwiftyGPIO.git
Computed https://github.com/uraimo/SwiftyGPIO.git at 1.4.4 (0.02s)
Creating working copy for https://github.com/uraimo/SwiftyGPIO.git
Working copy of https://github.com/uraimo/SwiftyGPIO.git resolved at 1.4.4
Creating working copy for https://github.com/uraimo/ubloxgps.swift.git
Working copy of https://github.com/uraimo/ubloxgps.swift.git resolved at master (c4d48e4)
warning: '.resolve-product-dependencies': dependency 'ubloxgps.swift' is not used by any target
Found 1 product dependencies
  - SwiftyGPIO
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/uraimo/ubloxgps.swift.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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/13] Compiling SwiftyGPIO SPI.swift
[5/14] Compiling SwiftyGPIO UART.swift
[6/14] Emitting module SwiftyGPIO
[7/14] Compiling SwiftyGPIO 1Wire.swift
[8/14] Compiling SwiftyGPIO Mailbox.swift
[9/14] Compiling SwiftyGPIO ADC.swift
[10/14] Compiling SwiftyGPIO Presets.swift
[11/14] Compiling SwiftyGPIO PWM.swift
[12/14] Compiling SwiftyGPIO I2C.swift
[13/14] Compiling SwiftyGPIO SunXi.swift
[14/14] Compiling SwiftyGPIO SwiftyGPIO.swift
[15/16] Emitting module UBloxGPS
[16/16] Compiling UBloxGPS UBloxGPS.swift
/Users/admin/builder/spi-builder-workspace/Sources/UBloxGPS.swift:83:13: warning: capture of 'self' with non-sendable type 'UBloxGPS' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 28 |
 29 |
 30 | public class UBloxGPS{
    |              `- note: class 'UBloxGPS' does not conform to the 'Sendable' protocol
 31 |    var uart: UARTInterface
 32 |    var updateThread: Thread?
    :
 81 |       if updateThread == nil {
 82 |          updateThread = Thread{ [unowned self] in
 83 |             self.update()
    |             `- warning: capture of 'self' with non-sendable type 'UBloxGPS' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 84 |          }
 85 |       }
/Users/admin/builder/spi-builder-workspace/Sources/UBloxGPS.swift:131:24: warning: 'characters' is deprecated: Please use String directly
129 |             // time,valid,lat,NorS,lon,EorW,speed,course,date,magn,EorW,ck
130 |             // time= hhmmss.ss, date= ddmmyy
131 |             if comp[1].characters.count > 0 {
    |                        `- warning: 'characters' is deprecated: Please use String directly
132 |                datetime = comp[9]+" "+String(comp[1].characters.dropLast(3))
133 |             }
/Users/admin/builder/spi-builder-workspace/Sources/UBloxGPS.swift:132:54: warning: 'characters' is deprecated: Please use String directly
130 |             // time= hhmmss.ss, date= ddmmyy
131 |             if comp[1].characters.count > 0 {
132 |                datetime = comp[9]+" "+String(comp[1].characters.dropLast(3))
    |                                                      `- warning: 'characters' is deprecated: Please use String directly
133 |             }
134 |
/Users/admin/builder/spi-builder-workspace/Sources/UBloxGPS.swift:141:25: warning: 'characters' is deprecated: Please use String directly
139 |
140 |             // latitude and longitude in degrees+minutes format
141 |             if (comp[3].characters.count > 0) && (comp[5].characters.count > 0) {
    |                         `- warning: 'characters' is deprecated: Please use String directly
142 |                latitude = Double(String(comp[3].characters.prefix(2)))! +
143 |                            Double(String(comp[3].characters.dropFirst(2)))!/60
/Users/admin/builder/spi-builder-workspace/Sources/UBloxGPS.swift:141:59: warning: 'characters' is deprecated: Please use String directly
139 |
140 |             // latitude and longitude in degrees+minutes format
141 |             if (comp[3].characters.count > 0) && (comp[5].characters.count > 0) {
    |                                                           `- warning: 'characters' is deprecated: Please use String directly
142 |                latitude = Double(String(comp[3].characters.prefix(2)))! +
143 |                            Double(String(comp[3].characters.dropFirst(2)))!/60
/Users/admin/builder/spi-builder-workspace/Sources/UBloxGPS.swift:142:49: warning: 'characters' is deprecated: Please use String directly
140 |             // latitude and longitude in degrees+minutes format
141 |             if (comp[3].characters.count > 0) && (comp[5].characters.count > 0) {
142 |                latitude = Double(String(comp[3].characters.prefix(2)))! +
    |                                                 `- warning: 'characters' is deprecated: Please use String directly
143 |                            Double(String(comp[3].characters.dropFirst(2)))!/60
144 |                latitude *= Double(NS)
/Users/admin/builder/spi-builder-workspace/Sources/UBloxGPS.swift:143:50: warning: 'characters' is deprecated: Please use String directly
141 |             if (comp[3].characters.count > 0) && (comp[5].characters.count > 0) {
142 |                latitude = Double(String(comp[3].characters.prefix(2)))! +
143 |                            Double(String(comp[3].characters.dropFirst(2)))!/60
    |                                                  `- warning: 'characters' is deprecated: Please use String directly
144 |                latitude *= Double(NS)
145 |                latitude = latitude.roundTo(places: 8)
/Users/admin/builder/spi-builder-workspace/Sources/UBloxGPS.swift:146:50: warning: 'characters' is deprecated: Please use String directly
144 |                latitude *= Double(NS)
145 |                latitude = latitude.roundTo(places: 8)
146 |                longitude = Double(String(comp[5].characters.prefix(3)))! +
    |                                                  `- warning: 'characters' is deprecated: Please use String directly
147 |                             Double(String(comp[5].characters.dropFirst(3)))!/60
148 |                longitude *= Double(EW)
/Users/admin/builder/spi-builder-workspace/Sources/UBloxGPS.swift:147:51: warning: 'characters' is deprecated: Please use String directly
145 |                latitude = latitude.roundTo(places: 8)
146 |                longitude = Double(String(comp[5].characters.prefix(3)))! +
147 |                             Double(String(comp[5].characters.dropFirst(3)))!/60
    |                                                   `- warning: 'characters' is deprecated: Please use String directly
148 |                longitude *= Double(EW)
149 |                longitude = longitude.roundTo(places: 8)
Build complete! (14.25s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swiftygpio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/uraimo/SwiftyGPIO.git"
    }
  ],
  "manifest_display_name" : "UBloxGPS",
  "name" : "UBloxGPS",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "UBloxGPS",
      "targets" : [
        "UBloxGPS"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UBloxGPS",
      "module_type" : "SwiftTarget",
      "name" : "UBloxGPS",
      "path" : ".",
      "product_dependencies" : [
        "SwiftyGPIO"
      ],
      "product_memberships" : [
        "UBloxGPS"
      ],
      "sources" : [
        "Sources/UBloxGPS.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.