The Swift Package Index logo.Swift Package Index

Build Information

Failed to build GKLogger, reference main (6de9b9), with Swift 6.2 for macOS (SPM) on 22 Jun 2025 01:55:36 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/GeorgeKyrylenko1998/GKLogger.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/GeorgeKyrylenko1998/GKLogger
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6de9b95 Add license
Cloned https://github.com/GeorgeKyrylenko1998/GKLogger.git
Revision (git rev-parse @):
6de9b958d1060531bb283d935ee8a5ddbfeb251b
SUCCESS checkout https://github.com/GeorgeKyrylenko1998/GKLogger.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/GeorgeKyrylenko1998/GKLogger.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[1/3] Copying GKLogs.xcdatamodeld
[2/3] Write swift-version-1EA4D86E10B52AF.txt
[4/7] Compiling GKLogger resource_bundle_accessor.swift
[5/7] Compiling GKLogger StringHelper.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/7] Emitting module GKLogger
/Users/admin/builder/spi-builder-workspace/Sources/GKLogger/GKLogger.swift:33:45: error: cannot find type 'GKLog' in scope
 31 |     }
 32 |
 33 |     static func buildLogsString(with logs: [GKLog]) -> String {
    |                                             `- error: cannot find type 'GKLog' in scope
 34 |         var logstr = ""
 35 |         for log in logs {
[7/7] Compiling GKLogger GKLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/GKLogger/GKLogger.swift:33:45: error: cannot find type 'GKLog' in scope
 31 |     }
 32 |
 33 |     static func buildLogsString(with logs: [GKLog]) -> String {
    |                                             `- error: cannot find type 'GKLog' in scope
 34 |         var logstr = ""
 35 |         for log in logs {
/Users/admin/builder/spi-builder-workspace/Sources/GKLogger/GKLogger.swift:15:23: error: cannot find 'GKLog' in scope
 13 |     public static var logsLimit = 15000
 14 |     public static var logsData: Data? {
 15 |         let request = GKLog.fetchRequest()
    |                       `- error: cannot find 'GKLog' in scope
 16 |         request.fetchLimit = logsLimit
 17 |         let logs = (try? viewContext.fetch(request)) ?? []
/Users/admin/builder/spi-builder-workspace/Sources/GKLogger/GKLogger.swift:19:38: error: cannot infer contextual base in reference to member 'utf8'
 17 |         let logs = (try? viewContext.fetch(request)) ?? []
 18 |         var logstr = buildLogsString(with: logs)
 19 |         return (logstr).data(using: .utf8)
    |                                      `- error: cannot infer contextual base in reference to member 'utf8'
 20 |     }
 21 |
/Users/admin/builder/spi-builder-workspace/Sources/GKLogger/GKLogger.swift:24:27: error: cannot find 'GKLog' in scope
 22 |     public static func logsURL(with completion: @escaping (_: URL?) -> ()) {
 23 |         persistentContainer.performBackgroundTask { context in
 24 |             let request = GKLog.fetchRequest()
    |                           `- error: cannot find 'GKLog' in scope
 25 |             request.fetchLimit = logsLimit
 26 |             request.sortDescriptors = [NSSortDescriptor(keyPath: \GKLog.date, ascending: false)]
/Users/admin/builder/spi-builder-workspace/Sources/GKLogger/GKLogger.swift:26:67: error: cannot find 'GKLog' in scope
 24 |             let request = GKLog.fetchRequest()
 25 |             request.fetchLimit = logsLimit
 26 |             request.sortDescriptors = [NSSortDescriptor(keyPath: \GKLog.date, ascending: false)]
    |                                                                   `- error: cannot find 'GKLog' in scope
 27 |             let logs = (try? context.fetch(request)) ?? []
 28 |             var logstr = buildLogsString(with: logs)
/Users/admin/builder/spi-builder-workspace/Sources/GKLogger/GKLogger.swift:26:67: error: invalid component of Swift key path
 24 |             let request = GKLog.fetchRequest()
 25 |             request.fetchLimit = logsLimit
 26 |             request.sortDescriptors = [NSSortDescriptor(keyPath: \GKLog.date, ascending: false)]
    |                                                                   `- error: invalid component of Swift key path
 27 |             let logs = (try? context.fetch(request)) ?? []
 28 |             var logstr = buildLogsString(with: logs)
/Users/admin/builder/spi-builder-workspace/Sources/GKLogger/GKLogger.swift:76:27: error: cannot find 'GKLog' in scope
 74 |             let log = "\(prefix)\(debugDescription)\(text)\n"
 75 |             persistentContainer.performBackgroundTask { context in
 76 |                 let log = GKLog(context: context)
    |                           `- error: cannot find 'GKLog' in scope
 77 |                 log.date = Date()
 78 |                 log.type = Int32(type.rawValue)
BUILD FAILURE 6.2 macosSpm