The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build RKUtils, reference v1.0.0 (0f3b63), with Swift 6.1 for macOS (SPM) on 3 Jun 2025 09:12:49 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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
========================================
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": "rkutils",
      "name": "RKUtils",
      "url": "https://github.com/TheRakiburKhan/RKUtils.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/RKUtils",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/TheRakiburKhan/RKUtils.git
[1/78] Fetching rkutils
Fetched https://github.com/TheRakiburKhan/RKUtils.git from cache (0.72s)
Creating working copy for https://github.com/TheRakiburKhan/RKUtils.git
Working copy of https://github.com/TheRakiburKhan/RKUtils.git resolved at v1.0.0 (0f3b639)
warning: '.resolve-product-dependencies': dependency 'rkutils' 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/TheRakiburKhan/RKUtils.git
https://github.com/TheRakiburKhan/RKUtils.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RKUtils",
  "name" : "RKUtils",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "RKUtils",
      "targets" : [
        "RKUtils"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "RKUtilsiOS",
      "targets" : [
        "RKUtils",
        "RKUtilsiOSUI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RKUtilsiOSUI",
      "module_type" : "SwiftTarget",
      "name" : "RKUtilsiOSUI",
      "path" : "Sources/RKUtilsiOSUI",
      "product_memberships" : [
        "RKUtilsiOS"
      ],
      "sources" : [
        "CGRect.swift",
        "Color.swift",
        "UICollectionView.swift",
        "UIColor.swift",
        "UIDevice.swift",
        "UIScreen.swift",
        "UIStoryboard.swift",
        "UITableView.swift",
        "UITextField.swift",
        "UITextView.swift",
        "UIView.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RKUtilsiOSTests",
      "module_type" : "SwiftTarget",
      "name" : "RKUtilsiOSTests",
      "path" : "Tests/RKUtilsiOSTests",
      "sources" : [
        "IntExtensionsTests.swift",
        "RKiOSUtilsTests.swift"
      ],
      "target_dependencies" : [
        "RKUtils",
        "RKUtilsiOSUI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RKUtils",
      "module_type" : "SwiftTarget",
      "name" : "RKUtils",
      "path" : "Sources/RKUtils",
      "product_memberships" : [
        "RKUtils",
        "RKUtilsiOS"
      ],
      "sources" : [
        "Bundle.swift",
        "CLLocationCoordinate2D.swift",
        "Data.swift",
        "Date.swift",
        "Double.swift",
        "Int.swift",
        "String.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.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
[9/22] Compiling RKUtils CLLocationCoordinate2D.swift
[10/22] Compiling RKUtils Bundle.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[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
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/20] 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
[3/20] Compiling RKUtils CLLocationCoordinate2D.swift
[4/20] Compiling RKUtils Bundle.swift
[5/20] Compiling RKUtils String.swift
[6/20] Compiling RKUtils Int.swift
[7/20] Compiling RKUtils Data.swift
[8/20] Compiling RKUtils Double.swift
[9/20] 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
BUILD FAILURE 6.1 macosSpm