Build Information
Failed to build LocationProvider, reference main (5e6f6a
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 13:37:50 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.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
[4/159] Fetching locationprovider
Fetched https://github.com/himbeles/LocationProvider.git from cache (0.72s)
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.1
Building package at path: $PWD
https://github.com/himbeles/LocationProvider.git
https://github.com/himbeles/LocationProvider.git
{
"dependencies" : [
],
"manifest_display_name" : "LocationProvider",
"name" : "LocationProvider",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "LocationProvider",
"targets" : [
"LocationProvider"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LocationProviderTests",
"module_type" : "SwiftTarget",
"name" : "LocationProviderTests",
"path" : "Tests/LocationProviderTests",
"sources" : [
"LocationProviderTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"LocationProvider"
],
"type" : "test"
},
{
"c99name" : "LocationProvider",
"module_type" : "SwiftTarget",
"name" : "LocationProvider",
"path" : "Sources/LocationProvider",
"product_memberships" : [
"LocationProvider"
],
"sources" : [
"LocationProvider.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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-2F0A5646E1D333AE.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 |
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/3] Emitting module LocationProvider
[3/3] 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.1 macosSpm