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 1.2.0 (2fbdb8), with Swift 6.1 for Android on 4 Jun 2025 06:32:33 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/StanfordSpezi/SpeziHealthKit.git
Reference: 1.2.0
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
 * tag               1.2.0      -> FETCH_HEAD
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 1.2.0
========================================
Build
========================================
Selected platform:         android
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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/StanfordSpezi/Spezi.git
Fetching https://github.com/StanfordSpezi/SpeziFoundation.git
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/StanfordSpezi/SpeziStorage.git
Fetching https://github.com/pointfreeco/swift-snapshot-testing.git
[1/880] Fetching spezifoundation
[881/2513] Fetching spezifoundation, spezistorage
[1012/11774] Fetching spezifoundation, spezistorage, spezi
[4520/17733] Fetching spezifoundation, spezistorage, spezi, swift-algorithms
[17702/30922] Fetching spezifoundation, spezistorage, spezi, swift-algorithms, swift-snapshot-testing
Fetched https://github.com/StanfordSpezi/SpeziFoundation.git from cache (0.92s)
Fetched https://github.com/apple/swift-algorithms.git from cache (0.93s)
Fetched https://github.com/StanfordSpezi/Spezi.git from cache (0.93s)
[2129/14822] Fetching spezistorage, swift-snapshot-testing
Fetched https://github.com/StanfordSpezi/SpeziStorage.git from cache (2.27s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing.git from cache (2.33s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (5.31s)
Fetching https://github.com/apple/swift-numerics.git
[1/5706] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.50s)
Computing version for https://github.com/StanfordSpezi/SpeziStorage.git
Computed https://github.com/StanfordSpezi/SpeziStorage.git at 2.1.1 (1.30s)
Fetching https://github.com/StanfordBDHG/XCTRuntimeAssertions.git
[1/583] Fetching xctruntimeassertions
Fetched https://github.com/StanfordBDHG/XCTRuntimeAssertions.git from cache (0.24s)
Computing version for https://github.com/StanfordSpezi/Spezi.git
Computed https://github.com/StanfordSpezi/Spezi.git at 1.8.2 (1.06s)
Fetching https://github.com/apple/swift-collections.git
[1/16591] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.40s)
Computing version for https://github.com/StanfordSpezi/SpeziFoundation.git
Computed https://github.com/StanfordSpezi/SpeziFoundation.git at 2.1.8 (2.16s)
Fetching https://github.com/apple/swift-atomics.git
[1/1762] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (1.16s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (1.79s)
Computing version for https://github.com/StanfordBDHG/XCTRuntimeAssertions.git
Computed https://github.com/StanfordBDHG/XCTRuntimeAssertions.git at 2.1.0 (0.74s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (0.65s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.77s)
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.57s)
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/4581] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.32s)
[1/70720] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (6.28s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (6.94s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5458] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.43s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 601.0.1 (2.24s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.5.2 (0.53s)
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/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/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-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/StanfordSpezi/Spezi.git
Working copy of https://github.com/StanfordSpezi/Spezi.git resolved at 1.8.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/StanfordSpezi/SpeziFoundation.git
Working copy of https://github.com/StanfordSpezi/SpeziFoundation.git resolved at 2.1.8
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/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/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/pointfreeco/swift-snapshot-testing.git
Working copy of https://github.com/pointfreeco/swift-snapshot-testing.git resolved at 1.18.4
Building for debugging...
[0/23] Write sources
[0/23] Copying Localizable.xcstrings.license
[0/23] Copying Localizable.xcstrings
[0/23] Copying Info.plist
[0/23] Write sources
[1/23] Copying Info.plist
[1/23] Copying Localizable.xcstrings.license
[1/23] Write sources
[11/23] Copying Localizable.xcstrings
[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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-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 android