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

Failed to build LocationProvider, reference main (5e6f6a), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 19:09:22 UTC.

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/himbeles/LocationProvider.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/himbeles/LocationProvider
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 5e6f6a6 Merge pull request #7 from boxed/patch-1
Cloned https://github.com/himbeles/LocationProvider.git
Revision (git rev-parse @):
5e6f6a683382489c114bb54e671b897f70c4aca2
SUCCESS checkout https://github.com/himbeles/LocationProvider.git at main
========================================
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": "locationprovider",
      "name": "LocationProvider",
      "url": "https://github.com/himbeles/LocationProvider.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LocationProvider",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/himbeles/LocationProvider.git
[1/159] Fetching locationprovider
Fetched https://github.com/himbeles/LocationProvider.git from cache (0.71s)
Creating working copy for https://github.com/himbeles/LocationProvider.git
Working copy of https://github.com/himbeles/LocationProvider.git resolved at main (5e6f6a6)
warning: '.resolve-product-dependencies': dependency 'locationprovider' 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/himbeles/LocationProvider.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/4] Emitting module LocationProvider
[4/4] Compiling LocationProvider LocationProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/LocationProvider/LocationProvider.swift:164:54: error: 'authorizedWhenInUse' is unavailable in macOS
162 |         //print()
163 |
164 |         if status == .authorizedAlways || status == .authorizedWhenInUse {
    |                                                      `- error: 'authorizedWhenInUse' is unavailable in macOS
165 |             self.lm.startUpdatingLocation()
166 |         }
CoreLocation.CLAuthorizationStatus:20:10: note: 'authorizedWhenInUse' has been explicitly marked unavailable here
18 |     public static var AuthorizedAlways: CLAuthorizationStatus { get }
19 |     @available(macOS, unavailable)
20 |     case authorizedWhenInUse
   |          `- note: 'authorizedWhenInUse' has been explicitly marked unavailable here
21 |     @available(macOS 10.6, *)
22 |     public static var authorized: CLAuthorizationStatus { get }
BUILD FAILURE 6.0 macosSpm