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 SpeziHealthKit, reference main (2fbdb8), with Swift 6.1 for Linux on 4 Jun 2025 06:30:41 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/StanfordSpezi/SpeziHealthKit.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/StanfordSpezi/SpeziHealthKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2fbdb86 `SleepSession`; other changes (#56)
Cloned https://github.com/StanfordSpezi/SpeziHealthKit.git
Revision (git rev-parse @):
2fbdb8636f3ad394d5833cc048be5bb35c78a8c5
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/StanfordSpezi/SpeziHealthKit.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/StanfordSpezi/SpeziHealthKit.git
https://github.com/StanfordSpezi/SpeziHealthKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "default_localization" : "en",
  "dependencies" : [
    {
      "identity" : "spezi",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.8.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/StanfordSpezi/Spezi.git"
    },
    {
      "identity" : "spezifoundation",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.7",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/StanfordSpezi/SpeziFoundation.git"
    },
    {
      "identity" : "spezistorage",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/StanfordSpezi/SpeziStorage.git"
    },
    {
      "identity" : "swift-algorithms",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-algorithms.git"
    },
    {
      "identity" : "swift-snapshot-testing",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.17.7",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/pointfreeco/swift-snapshot-testing.git"
    }
  ],
  "manifest_display_name" : "SpeziHealthKit",
  "name" : "SpeziHealthKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "10.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "SpeziHealthKit",
      "targets" : [
        "SpeziHealthKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SpeziHealthKitBulkExport",
      "targets" : [
        "SpeziHealthKitBulkExport"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SpeziHealthKitUI",
      "targets" : [
        "SpeziHealthKitUI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SpeziHealthKitUI",
      "module_type" : "SwiftTarget",
      "name" : "SpeziHealthKitUI",
      "path" : "Sources/SpeziHealthKitUI",
      "product_dependencies" : [
        "SpeziFoundation"
      ],
      "product_memberships" : [
        "SpeziHealthKitUI"
      ],
      "sources" : [
        "Deprecations.swift",
        "HealthChart/HealthChart.swift",
        "HealthChart/HealthChartDataPoint.swift",
        "HealthChart/HealthChartEntry.swift",
        "HealthChart/Utils.swift",
        "Queries/HealthKitCharacteristicsQuery.swift",
        "Queries/HealthKitQuery.swift",
        "Queries/HealthKitQueryResults.swift",
        "Queries/HealthKitStatisticsQuery.swift"
      ],
      "target_dependencies" : [
        "SpeziHealthKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SpeziHealthKitTests",
      "module_type" : "SwiftTarget",
      "name" : "SpeziHealthKitTests",
      "path" : "Tests/SpeziHealthKitTests",
      "product_dependencies" : [
        "XCTSpezi",
        "SnapshotTesting"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/SpeziHealthKitTests/__Snapshots__/SpeziHealthKitUITests/conditionalHealthChartContentSnapshot.1.png",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SpeziHealthKitTests/__Snapshots__/SpeziHealthKitUITests/conditionalHealthChartContentSnapshot.2.png",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SpeziHealthKitTests/__Snapshots__/SpeziHealthKitUITests/emptyHealthChartEntriesButNoDataSnapshot.1.png",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SpeziHealthKitTests/__Snapshots__/SpeziHealthKitUITests/emptyHealthChartNoEntriesSnapshot.1.png",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SpeziHealthKitTests/__Snapshots__/SpeziHealthKitUITests/multiEntryHealthChartViewSnapshot.1.png",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SpeziHealthKitTests/__Snapshots__/SpeziHealthKitUITests/simpleHealthChartViewSnapshot.1.png",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SpeziHealthKitTests/__Snapshots__/SpeziHealthKitUITests/simpleHealthChartViewSnapshot.2.png",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "BulkExporterAPITests.swift",
        "CalendarUtilsTests.swift",
        "LoopingIterator.swift",
        "MockQueryResults.swift",
        "SampleTypeProxyTests.swift",
        "SampleTypesCollectionTests.swift",
        "SampleTypesTests.swift",
        "SpeziHealthKitTests+CollectSample.swift",
        "SpeziHealthKitTests.swift",
        "SpeziHealthKitUITests.swift",
        "Utils.swift"
      ],
      "target_dependencies" : [
        "SpeziHealthKit",
        "SpeziHealthKitBulkExport",
        "SpeziHealthKitUI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SpeziHealthKitBulkExport",
      "module_type" : "SwiftTarget",
      "name" : "SpeziHealthKitBulkExport",
      "path" : "Sources/SpeziHealthKitBulkExport",
      "product_dependencies" : [
        "SpeziFoundation",
        "SpeziLocalStorage"
      ],
      "product_memberships" : [
        "SpeziHealthKitBulkExport"
      ],
      "sources" : [
        "BatchProcessor.swift",
        "BulkExportSession.swift",
        "BulkExportSessionDescriptor.swift",
        "BulkExportSessionIdentifier.swift",
        "BulkExportSessionImpl.swift",
        "BulkHealthExporter.swift",
        "CalendarUtils.swift",
        "ExportBatch.swift",
        "ExportSessionBatchSize.swift",
        "ExportSessionStartDate.swift"
      ],
      "target_dependencies" : [
        "SpeziHealthKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SpeziHealthKit",
      "module_type" : "SwiftTarget",
      "name" : "SpeziHealthKit",
      "path" : "Sources/SpeziHealthKit",
      "product_dependencies" : [
        "Spezi",
        "SpeziFoundation",
        "SpeziLocalStorage",
        "Algorithms"
      ],
      "product_memberships" : [
        "SpeziHealthKit",
        "SpeziHealthKitBulkExport",
        "SpeziHealthKitUI"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/SpeziHealthKit/Resources/Localizable.xcstrings",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/SpeziHealthKit/Resources/Localizable.xcstrings.license",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Configuration/HealthKitConfiguration.swift",
        "Configuration/RequestReadAccess.swift",
        "Configuration/RequestWriteAccess.swift",
        "Export.swift",
        "Health Data Collection/CollectSample.swift",
        "Health Data Collection/HealthDataCollector.swift",
        "Health Data Collection/HealthDataCollectorDeliverySetting.swift",
        "Health Data Collection/HealthKitSampleCollector.swift",
        "HealthKit Extensions/HKElectrocardiogram+RelatedData.swift",
        "HealthKit Extensions/HKHealthStore+BackgroundDelivery.swift",
        "HealthKit Extensions/HKSample+Identifiable.swift",
        "HealthKit Extensions/Sleep Sessions/SleepSession.swift",
        "HealthKit Extensions/Sleep Sessions/SleepSessionsBuilder.swift",
        "HealthKit.swift",
        "HealthKitConstraint.swift",
        "Logging/Logger+HealthKit.swift",
        "Queries/HealthKitQuery.swift",
        "Queries/HealthKitQueryTimeRange.swift",
        "Queries/QueryAnchor.swift",
        "Sample Types/AnySampleType.swift",
        "Sample Types/HealthKitCharacteristic.swift",
        "Sample Types/SampleType.swift",
        "Sample Types/SampleTypeProxy.swift",
        "Sample Types/SampleTypes.swift",
        "Sample Types/SampleTypesCollection.swift",
        "Sample Types/_HKSampleTypeWithIdentifierType.swift",
        "Sample Types/_HKSampleWithSampleType.swift",
        "SampleTypeScopedLocalStorage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2b296aa7156f49efc57252cdf9ed4bb21d0f92fc98d88800e255491ba2db3116
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/StanfordSpezi/SpeziFoundation.git
Fetching https://github.com/pointfreeco/swift-snapshot-testing.git
Fetching https://github.com/StanfordSpezi/SpeziStorage.git
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/StanfordSpezi/Spezi.git
[1/1633] Fetching spezistorage
[1259/2513] Fetching spezistorage, spezifoundation
[2514/8472] Fetching spezistorage, spezifoundation, swift-algorithms
[2515/17733] Fetching spezistorage, spezifoundation, swift-algorithms, spezi
Fetched https://github.com/StanfordSpezi/SpeziStorage.git from cache (0.37s)
[13878/16100] Fetching spezifoundation, swift-algorithms, spezi
Fetched https://github.com/apple/swift-algorithms.git from cache (0.45s)
[1/13189] Fetching swift-snapshot-testing
Fetched https://github.com/StanfordSpezi/Spezi.git from cache (0.53s)
Fetched https://github.com/StanfordSpezi/SpeziFoundation.git from cache (1.99s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing.git from cache (2.06s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (5.08s)
Fetching https://github.com/apple/swift-numerics.git
[1/5706] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.40s)
Computing version for https://github.com/StanfordSpezi/SpeziStorage.git
Computed https://github.com/StanfordSpezi/SpeziStorage.git at 2.1.1 (1.15s)
Fetching https://github.com/StanfordBDHG/XCTRuntimeAssertions.git
[1/583] Fetching xctruntimeassertions
Fetched https://github.com/StanfordBDHG/XCTRuntimeAssertions.git from cache (0.27s)
Computing version for https://github.com/StanfordSpezi/Spezi.git
Computed https://github.com/StanfordSpezi/Spezi.git at 1.8.2 (1.09s)
Fetching https://github.com/apple/swift-collections.git
[1/16591] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.44s)
Computing version for https://github.com/StanfordSpezi/SpeziFoundation.git
Computed https://github.com/StanfordSpezi/SpeziFoundation.git at 2.1.8 (2.18s)
Fetching https://github.com/apple/swift-atomics.git
[1/1762] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.43s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (1.07s)
Computing version for https://github.com/StanfordBDHG/XCTRuntimeAssertions.git
Computed https://github.com/StanfordBDHG/XCTRuntimeAssertions.git at 2.1.0 (0.91s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (0.90s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.85s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing.git
Computed https://github.com/pointfreeco/swift-snapshot-testing.git at 1.18.4 (0.59s)
Fetching https://github.com/pointfreeco/swift-custom-dump
Fetching https://github.com/swiftlang/swift-syntax
[1/4581] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.39s)
[1/70720] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (5.52s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (6.08s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5458] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.78s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 601.0.1 (1.68s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.5.2 (0.57s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.5.2
Creating working copy for https://github.com/StanfordBDHG/XCTRuntimeAssertions.git
Working copy of https://github.com/StanfordBDHG/XCTRuntimeAssertions.git resolved at 2.1.0
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing.git
Working copy of https://github.com/pointfreeco/swift-snapshot-testing.git resolved at 1.18.4
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.3.3
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.3
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 601.0.1
Creating working copy for https://github.com/StanfordSpezi/SpeziFoundation.git
Working copy of https://github.com/StanfordSpezi/SpeziFoundation.git resolved at 2.1.8
Creating working copy for https://github.com/StanfordSpezi/SpeziStorage.git
Working copy of https://github.com/StanfordSpezi/SpeziStorage.git resolved at 2.1.1
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/StanfordSpezi/Spezi.git
Working copy of https://github.com/StanfordSpezi/Spezi.git resolved at 1.8.2
Building for debugging...
[0/23] Write sources
[0/23] Copying Localizable.xcstrings
[0/23] Write sources
[9/23] Copying Localizable.xcstrings.license
[10/23] Copying Info.plist
[10/23] Copying Localizable.xcstrings
[10/23] Copying Info.plist
[14/23] Write sources
[19/23] Compiling _NumericsShims _NumericsShims.c
[20/23] Compiling _AtomicsShims.c
In file included from /host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundationObjC/ObjCExceptionHandling.m:9:
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundationObjC/include/ObjCExceptionHandling.h:12:10: fatal error: 'Foundation/NSObjCRuntime.h' file not found
   12 | #include <Foundation/NSObjCRuntime.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[21/23] Compiling SpeziFoundationObjC ObjCExceptionHandling.m
[21/23] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2b296aa7156f49efc57252cdf9ed4bb21d0f92fc98d88800e255491ba2db3116
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
In file included from /host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundationObjC/ObjCExceptionHandling.m:9:
/host/spi-builder-workspace/.build/checkouts/SpeziFoundation/Sources/SpeziFoundationObjC/include/ObjCExceptionHandling.h:12:10: fatal error: 'Foundation/NSObjCRuntime.h' file not found
   12 | #include <Foundation/NSObjCRuntime.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[0/2] Compiling SpeziFoundationObjC ObjCExceptionHandling.m
[0/2] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 linux