Build Information
Failed to build LocationProvider with Swift 5.9 for macOS (SPM).
Build Command
env DEVELOPER_DIR="/Applications/Xcode-15.0.0.app" xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.23.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/himbeles/LocationProvider.git
Reference: main
Initialized empty Git repository in /Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-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 into spi-builder-workspace
5e6f6a683382489c114bb54e671b897f70c4aca2
SUCCESS checkout https://github.com/himbeles/LocationProvider.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
env DEVELOPER_DIR="/Applications/Xcode-15.0.0.app" xcrun swift build --arch arm64
Building for debugging...
[1/2] Emitting module LocationProvider
[2/2] Compiling LocationProvider LocationProvider.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LocationProvider/LocationProvider.swift:164:54: error: 'authorizedWhenInUse' is unavailable in macOS
if status == .authorizedAlways || status == .authorizedWhenInUse {
^~~~~~~~~~~~~~~~~~~
CoreLocation.CLAuthorizationStatus:20:10: note: 'authorizedWhenInUse' has been explicitly marked unavailable here
case authorizedWhenInUse
^
error: fatalError
ShellOut encountered an error
Status code: 1
Message: ""
Output: "Building for debugging...
[1/2] Emitting module LocationProvider
[2/2] Compiling LocationProvider LocationProvider.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LocationProvider/LocationProvider.swift:164:54: error: 'authorizedWhenInUse' is unavailable in macOS
if status == .authorizedAlways || status == .authorizedWhenInUse {
^~~~~~~~~~~~~~~~~~~
CoreLocation.CLAuthorizationStatus:20:10: note: 'authorizedWhenInUse' has been explicitly marked unavailable here
case authorizedWhenInUse
^
error: fatalError"
Retrying in 0.0 seconds ...
Building ... (attempt 2)
[0/1] Planning build
Building for debugging...
[1/2] Emitting module LocationProvider
[2/2] Compiling LocationProvider LocationProvider.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LocationProvider/LocationProvider.swift:164:54: error: 'authorizedWhenInUse' is unavailable in macOS
if status == .authorizedAlways || status == .authorizedWhenInUse {
^~~~~~~~~~~~~~~~~~~
CoreLocation.CLAuthorizationStatus:20:10: note: 'authorizedWhenInUse' has been explicitly marked unavailable here
case authorizedWhenInUse
^
error: fatalError
ShellOut encountered an error
Status code: 1
Message: ""
Output: "[0/1] Planning build
Building for debugging...
[1/2] Emitting module LocationProvider
[2/2] Compiling LocationProvider LocationProvider.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/LocationProvider/LocationProvider.swift:164:54: error: 'authorizedWhenInUse' is unavailable in macOS
if status == .authorizedAlways || status == .authorizedWhenInUse {
^~~~~~~~~~~~~~~~~~~
CoreLocation.CLAuthorizationStatus:20:10: note: 'authorizedWhenInUse' has been explicitly marked unavailable here
case authorizedWhenInUse
^
error: fatalError"
BUILD FAILURE 5.9 macosSpm