Build Information
Failed to build RKUtils, reference v1.0.0 (0f3b63
), with Swift 6.0 for macOS (SPM) on 3 Jun 2025 09:11:16 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/TheRakiburKhan/RKUtils.git
Reference: v1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/TheRakiburKhan/RKUtils
* tag v1.0.0 -> FETCH_HEAD
HEAD is now at 0f3b639 initial version
Cloned https://github.com/TheRakiburKhan/RKUtils.git
Revision (git rev-parse @):
0f3b639ca4325c8c271cd66f57baee8cc1f46930
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/TheRakiburKhan/RKUtils.git at v1.0.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/TheRakiburKhan/RKUtils.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-5BDAB9E9C0126B9D.txt
[4/22] Compiling RKUtils Int.swift
[5/22] Compiling RKUtils String.swift
[6/22] Compiling RKUtils Data.swift
[7/22] Compiling RKUtils Double.swift
[8/22] Compiling RKUtils Date.swift
/Users/admin/builder/spi-builder-workspace/Sources/RKUtils/Date.swift:46:94: error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public extension Date {
| `- note: add @available attribute to enclosing extension
12 | /**
13 | Converts ``Date`` to Human readable string format. Default format is "*01 Jan 1970 12:00 AM*"
:
44 | }
45 |
46 | func relativeTime(to date: Date = Date(), context: Formatter.Context = .listItem, style: RelativeDateTimeFormatter.DateTimeStyle = .numeric, unitStyle: RelativeDateTimeFormatter.UnitsStyle = .abbreviated) -> String {
| | `- error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
47 | let formatter = RelativeDateTimeFormatter()
48 | formatter.formattingContext = context
/Users/admin/builder/spi-builder-workspace/Sources/RKUtils/Date.swift:46:157: error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public extension Date {
| `- note: add @available attribute to enclosing extension
12 | /**
13 | Converts ``Date`` to Human readable string format. Default format is "*01 Jan 1970 12:00 AM*"
:
44 | }
45 |
46 | func relativeTime(to date: Date = Date(), context: Formatter.Context = .listItem, style: RelativeDateTimeFormatter.DateTimeStyle = .numeric, unitStyle: RelativeDateTimeFormatter.UnitsStyle = .abbreviated) -> String {
| | `- error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
47 | let formatter = RelativeDateTimeFormatter()
48 | formatter.formattingContext = context
/Users/admin/builder/spi-builder-workspace/Sources/RKUtils/Date.swift:47:25: error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public extension Date {
| `- note: add @available attribute to enclosing extension
12 | /**
13 | Converts ``Date`` to Human readable string format. Default format is "*01 Jan 1970 12:00 AM*"
:
44 | }
45 |
46 | func relativeTime(to date: Date = Date(), context: Formatter.Context = .listItem, style: RelativeDateTimeFormatter.DateTimeStyle = .numeric, unitStyle: RelativeDateTimeFormatter.UnitsStyle = .abbreviated) -> String {
| `- note: add @available attribute to enclosing instance method
47 | let formatter = RelativeDateTimeFormatter()
| |- error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | formatter.formattingContext = context
49 | formatter.dateTimeStyle = style
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/22] Compiling RKUtils Bundle.swift
[10/22] Compiling RKUtils CLLocationCoordinate2D.swift
[11/22] Emitting module RKUtils
/Users/admin/builder/spi-builder-workspace/Sources/RKUtils/Date.swift:46:94: error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public extension Date {
| `- note: add @available attribute to enclosing extension
12 | /**
13 | Converts ``Date`` to Human readable string format. Default format is "*01 Jan 1970 12:00 AM*"
:
44 | }
45 |
46 | func relativeTime(to date: Date = Date(), context: Formatter.Context = .listItem, style: RelativeDateTimeFormatter.DateTimeStyle = .numeric, unitStyle: RelativeDateTimeFormatter.UnitsStyle = .abbreviated) -> String {
| | `- error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
47 | let formatter = RelativeDateTimeFormatter()
48 | formatter.formattingContext = context
/Users/admin/builder/spi-builder-workspace/Sources/RKUtils/Date.swift:46:157: error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public extension Date {
| `- note: add @available attribute to enclosing extension
12 | /**
13 | Converts ``Date`` to Human readable string format. Default format is "*01 Jan 1970 12:00 AM*"
:
44 | }
45 |
46 | func relativeTime(to date: Date = Date(), context: Formatter.Context = .listItem, style: RelativeDateTimeFormatter.DateTimeStyle = .numeric, unitStyle: RelativeDateTimeFormatter.UnitsStyle = .abbreviated) -> String {
| | `- error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
47 | let formatter = RelativeDateTimeFormatter()
48 | formatter.formattingContext = context
BUILD FAILURE 6.0 macosSpm