The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LocationProvider, reference main (5e6f6a), with Swift 6.3 for macOS (SPM) on 12 Apr 2026 08:22:08 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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",
  "traits": [
    "default"
  ],
  "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",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/himbeles/LocationProvider.git
[1/159] Fetching locationprovider
Fetched https://github.com/himbeles/LocationProvider.git from cache (0.59s)
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.3
Building package at path:  $PWD
https://github.com/himbeles/LocationProvider.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.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.authorizedWhenInUse:3:8: note: 'authorizedWhenInUse' has been explicitly marked unavailable here
1 | enum CLAuthorizationStatus {
2 | @available(macOS, unavailable)
3 |   case authorizedWhenInUse}
  |        `- note: 'authorizedWhenInUse' has been explicitly marked unavailable here
4 |
BUILD FAILURE 6.3 macosSpm